9 /*! The window which gets focus when nothing else will be focused */
10 extern Window focus_backup
;
12 /*! The client which is currently focused */
13 extern struct _ObClient
*focus_client
;
15 /*! The recent focus order on each desktop */
16 extern GList
**focus_order
;
19 void focus_shutdown();
21 /*! Specify which client is currently focused, this doesn't actually
22 send focus anywhere, its called by the Focus event handlers */
23 void focus_set_client(struct _ObClient
*client
);
26 OB_FOCUS_FALLBACK_DESKTOP
, /*!< switching desktops */
27 OB_FOCUS_FALLBACK_UNFOCUSING
, /*!< forcefully remove focus from the
29 OB_FOCUS_FALLBACK_NOFOCUS
/*!< nothing has focus for some reason */
30 } ObFocusFallbackType
;
32 /*! Call this when you need to focus something! */
33 void focus_fallback(ObFocusFallbackType type
);
35 /*! Cycle focus amongst windows
36 Returns the _ObClient to which focus has been cycled, or NULL if none. */
37 struct _ObClient
*focus_cycle(gboolean forward
, gboolean linear
, gboolean done
,
40 /*! Add a new client into the focus order */
41 void focus_order_add_new(struct _ObClient
*c
);
43 /*! Remove a client from the focus order */
44 void focus_order_remove(struct _ObClient
*c
);
46 /*! Move a client to the top of the focus order */
47 void focus_order_to_top(struct _ObClient
*c
);
49 /*! Move a client to the bottom of the focus order (keeps iconic windows at the
50 very bottom always though). */
51 void focus_order_to_bottom(struct _ObClient
*c
);