11 /*! The client which is currently focused */
12 extern struct _ObClient
*focus_client
;
13 /*! The client which appears focused during a focus cycle operation */
14 extern struct _ObClient
*focus_cycle_target
;
16 /*! The recent focus order on each desktop */
17 extern GList
**focus_order
;
19 void focus_startup(gboolean reconfig
);
20 void focus_shutdown(gboolean reconfig
);
22 /*! Specify which client is currently focused, this doesn't actually
23 send focus anywhere, its called by the Focus event handlers */
24 void focus_set_client(struct _ObClient
*client
);
27 OB_FOCUS_FALLBACK_DESKTOP
, /*!< switching desktops */
28 OB_FOCUS_FALLBACK_UNFOCUSING
, /*!< forcefully remove focus from the
30 OB_FOCUS_FALLBACK_NOFOCUS
/*!< nothing has focus for some reason */
31 } ObFocusFallbackType
;
33 /*! Call this when you need to focus something! */
34 void focus_fallback(ObFocusFallbackType type
);
36 /*! Cycle focus amongst windows
37 Returns the _ObClient to which focus has been cycled, or NULL if none. */
38 void focus_cycle(gboolean forward
, gboolean linear
,
39 gboolean dialog
, gboolean done
, gboolean cancel
);
40 void focus_directional_cycle(ObDirection dir
,
41 gboolean dialog
, gboolean done
, gboolean cancel
);
43 /*! Add a new client into the focus order */
44 void focus_order_add_new(struct _ObClient
*c
);
46 /*! Remove a client from the focus order */
47 void focus_order_remove(struct _ObClient
*c
);
49 /*! Move a client to the top of the focus order */
50 void focus_order_to_top(struct _ObClient
*c
);
52 /*! Move a client to the bottom of the focus order (keeps iconic windows at the
53 very bottom always though). */
54 void focus_order_to_bottom(struct _ObClient
*c
);