from master - panel: fix ID 3427598 - 'lxpanelctl run' works only once per lxpanel...
authorGiuseppe Penone <giuspen@gmail.com>
Thu, 5 Sep 2013 09:07:44 +0000 (11:07 +0200)
committerGiuseppe Penone <giuspen@gmail.com>
Thu, 5 Sep 2013 09:07:44 +0000 (11:07 +0200)
src/panel.c

index 5a1e6c4..bc39d7b 100644 (file)
@@ -1709,7 +1709,8 @@ restart:
        /* NOTE: StructureNotifyMask is required by XRandR
         * See init_randr_support() in gdkscreen-x11.c of gtk+ for detail.
         */
-    XSelectInput (GDK_DISPLAY(), GDK_ROOT_WINDOW(), StructureNotifyMask|SubstructureNotifyMask|PropertyChangeMask);
+    gdk_window_set_events(gdk_get_default_root_window(), GDK_STRUCTURE_MASK |
+            GDK_SUBSTRUCTURE_MASK | GDK_PROPERTY_CHANGE_MASK);
     gdk_window_add_filter(gdk_get_default_root_window (), (GdkFilterFunc)panel_event_filter, NULL);
 
     if( G_UNLIKELY( ! start_all_panels() ) )