X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.h;h=d7f0183e901e6db88fb9ee96518ad5ecbe1f8064;hb=59c3cce4f49f04ed2c2937e7de24255dd53df487;hp=cb9a9a99b4f87b4ad8aac6787e3d1a3edbd57b8d;hpb=648c55b829e09c66222a9bbf08d10434622feae2;p=chaz%2Fopenbox diff --git a/openbox/focus.h b/openbox/focus.h index cb9a9a99..d7f0183e 100644 --- a/openbox/focus.h +++ b/openbox/focus.h @@ -22,4 +22,18 @@ void focus_shutdown(); send focus anywhere, its called by the Focus event handlers */ void focus_set_client(struct Client *client); +typedef enum { + Fallback_Desktop, /* switching desktops */ + Fallback_Unfocusing, /* forcefully remove focus from the curernt window */ + Fallback_NoFocus /* nothing has focus for some reason */ +} FallbackType; + +/*! Call this when you need to focus something! */ +void focus_fallback(FallbackType type); + +/*! Cycle focus amongst windows + Returns the Client to which focus has been cycled, or NULL if none. */ +struct Client *focus_cycle(gboolean forward, gboolean linear, gboolean done, + gboolean cancel); + #endif