all repos — openbox @ e4f24d84a0f9cf81f6228bbe51a30128f451e041

openbox fork - make it a bit more like ryudo

Hide the desktop cycle popup when the focus cycle popup is shown.
Mikael Magnusson mikachu@comhem.se
commit

e4f24d84a0f9cf81f6228bbe51a30128f451e041

parent

f4aeb10397713cafb248bbce439e9b329decd56b

3 files changed, 9 insertions(+), 0 deletions(-)

jump to
M openbox/focus_cycle_popup.copenbox/focus_cycle_popup.c

@@ -456,6 +456,7 @@ /* show the dialog */

XMapWindow(ob_display, popup.bg); XFlush(ob_display); popup.mapped = TRUE; + screen_hide_desktop_popup(); } }
M openbox/screen.copenbox/screen.c

@@ -858,6 +858,12 @@ hide_desktop_popup_func, NULL, NULL, NULL);

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) {
M openbox/screen.hopenbox/screen.h

@@ -77,6 +77,8 @@ gboolean wrap, gboolean linear);

/*! 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.