Hide the desktop cycle popup when the focus cycle popup is shown.
authorMikael Magnusson <mikachu@comhem.se>
Wed, 22 Aug 2007 15:36:40 +0000 (17:36 +0200)
committerMikael Magnusson <mikachu@comhem.se>
Wed, 22 Aug 2007 16:00:12 +0000 (18:00 +0200)
openbox/focus_cycle_popup.c
openbox/screen.c
openbox/screen.h

index e0a8080..1869cc3 100644 (file)
@@ -456,6 +456,7 @@ void focus_cycle_popup_show(ObClient *c, gboolean iconic_windows,
         XMapWindow(ob_display, popup.bg);
         XFlush(ob_display);
         popup.mapped = TRUE;
+        screen_hide_desktop_popup();
     }
 }
 
index 9899cfd..7516cfd 100644 (file)
@@ -858,6 +858,12 @@ void screen_show_desktop_popup(guint d)
     g_free(a);
 }
 
+void screen_hide_desktop_popup()
+{
+    ob_main_loop_timeout_remove(ob_main_loop, hide_desktop_popup_func);
+    pager_popup_hide(desktop_popup);
+}
+
 guint screen_find_desktop(guint from, ObDirection dir,
                           gboolean wrap, gboolean linear)
 {
index 68a1325..39871e3 100644 (file)
@@ -77,6 +77,8 @@ guint screen_find_desktop(guint from, ObDirection dir,
 
 /*! Show the desktop popup/notification */
 void screen_show_desktop_popup(guint d);
+/*! Hide it */
+void screen_hide_desktop_popup();
 
 /*! Shows and focuses the desktop and hides all the client windows, or
   returns to the normal state, showing client windows.