Fix "autohide" option applying from configuration dialog.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Tue, 18 Nov 2014 18:51:41 +0000 (20:51 +0200)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Tue, 18 Nov 2014 18:51:41 +0000 (20:51 +0200)
It became broken after some optimization and was applied only initially.

src/panel.c

index 9ecc878..b98ccf8 100644 (file)
@@ -260,6 +260,9 @@ static void lxpanel_size_allocate(GtkWidget *widget, GtkAllocation *a)
                                                                panel, NULL);
         _panel_queue_update_background(panel);
     }
+
+    if (gtk_widget_get_mapped(widget))
+        _panel_establish_autohide(panel);
 }
 
 static gboolean lxpanel_configure_event (GtkWidget *widget, GdkEventConfigure *e)
@@ -1351,7 +1354,6 @@ panel_start_gui(LXPanel *panel, config_setting_t *list)
     gtk_window_present(GTK_WINDOW(panel));
 
     /* the settings that should be done after window is mapped */
-    _panel_establish_autohide(panel);
 
     /* send it to running wm */
     Xclimsg(p->topxwin, a_NET_WM_DESKTOP, G_MAXULONG, 0, 0, 0, 0);