[SF#666]Fix bug with hidden panel disappearing after resolution change.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 13 Nov 2014 16:27:13 +0000 (18:27 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 13 Nov 2014 16:27:13 +0000 (18:27 +0200)
ChangeLog
src/panel.c

index abc1bcf..c330f5f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@
 * Some edge and monitors selections in panel configuration dialog may be
     insensitive now if appropriate edge and monitor combination is not
     available, to avoid panels stacking one over another.
+* Fixed bug with hidden panel disappearing after resolution change.
 
 0.7.2
 -------------------------------------------------------------------------
index 184690f..50b31ee 100644 (file)
@@ -1575,7 +1575,12 @@ static void on_monitors_changed(GdkScreen* screen, gpointer unused)
             panel_stop_gui(p);
         /* resize panel if appropriate monitor changed its size or position */
         else
+        {
+            /* SF bug #666: after screen resize panel cannot establish
+               right size since cannot be moved while is hidden */
+            ah_state_set(p, AH_STATE_VISIBLE);
             gtk_widget_queue_resize(GTK_WIDGET(p));
+        }
     }
 }