X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus.h;h=d7f0183e901e6db88fb9ee96518ad5ecbe1f8064;hb=43139ed3734c11c858f92f1c2cc7ed4cdba169cb;hp=af95015cb1d6f6a07766def84e46f650c157ebcd;hpb=eee483bb472b0d3e95dd2470aa49656653dd13d6;p=chaz%2Fopenbox diff --git a/openbox/focus.h b/openbox/focus.h index af95015c..d7f0183e 100644 --- a/openbox/focus.h +++ b/openbox/focus.h @@ -22,7 +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(gboolean switching_desks); +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