X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Ffocus_cycle_popup.h;h=b085f9a94e1ba3e13072c2d18552ab7e103e14cc;hb=0cd6f4e43c355ef6b568c769a4ecb2983d5f3fa6;hp=19279a62d43f2232661cd4a7ab896139648ecb5b;hpb=a067628051f5ee91f6e759ff85c8e31a7123d571;p=chaz%2Fopenbox diff --git a/openbox/focus_cycle_popup.h b/openbox/focus_cycle_popup.h index 19279a62..b085f9a9 100644 --- a/openbox/focus_cycle_popup.h +++ b/openbox/focus_cycle_popup.h @@ -24,22 +24,35 @@ struct _ObClient; #include +typedef enum { + OB_FOCUS_CYCLE_POPUP_MODE_NONE, + OB_FOCUS_CYCLE_POPUP_MODE_ICONS, + OB_FOCUS_CYCLE_POPUP_MODE_LIST +} ObFocusCyclePopupMode; + void focus_cycle_popup_startup(gboolean reconfig); void focus_cycle_popup_shutdown(gboolean reconfig); void focus_cycle_popup_show(struct _ObClient *c, gboolean iconic_windows, gboolean all_desktops, gboolean dock_windows, - gboolean desktop_windows); -void focus_cycle_popup_hide(); + gboolean desktop_windows, + ObFocusCyclePopupMode mode); +void focus_cycle_popup_hide(void); void focus_cycle_popup_single_show(struct _ObClient *c, gboolean iconic_windows, gboolean all_desktops, gboolean dock_windows, gboolean desktop_windows); -void focus_cycle_popup_single_hide(); +void focus_cycle_popup_single_hide(void); + +gboolean focus_cycle_popup_is_showing(struct _ObClient *c); -/*! Returns TRUE if the popup is showing the client, otherwise FALSE. */ -gboolean focus_cycle_popup_is_showing(struct _ObClient *client); +/*! Redraws the focus cycle popup, and returns the current target. If + the target given to the function is no longer valid, this will return + a different target that is valid, and which should be considered the + current focus cycling target. */ +struct _ObClient *focus_cycle_popup_refresh(struct _ObClient *target, + gboolean redraw); #endif