all repos — openbox @ 07c3a31cf5794447d3a5a52086cdeb808d817f3a

openbox fork - make it a bit more like ryudo

make the desktop popup a public function
Dana Jansens danakj@orodu.net
commit

07c3a31cf5794447d3a5a52086cdeb808d817f3a

parent

2de2678e912fdfb56fcee2f323a66bb20bdefab9

2 files changed, 6 insertions(+), 3 deletions(-)

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

@@ -568,7 +568,7 @@ g_assert_not_reached();

return 0; } -static void popup_cycle(guint d, gboolean show) +void screen_desktop_popup(guint d, gboolean show) { Rect *a;

@@ -687,14 +687,14 @@ d = translate_row_col(r, c);

} if (dialog) { - popup_cycle(d, TRUE); + screen_desktop_popup(d, TRUE); return d; } done_cycle: first = TRUE; - popup_cycle(0, FALSE); + screen_desktop_popup(0, FALSE); return d; }
M openbox/screen.hopenbox/screen.h

@@ -69,6 +69,9 @@ /*! Interactively change desktops */

guint screen_cycle_desktop(ObDirection dir, gboolean wrap, gboolean linear, gboolean dialog, gboolean done, gboolean cancel); +/*! Show/hide the desktop popup (pager) for the given desktop */ +void screen_desktop_popup(guint d, gboolean show); + /*! Shows and focuses the desktop and hides all the client windows, or returns to the normal state, showing client windows. */ void screen_show_desktop(gboolean show);