summaryrefslogtreecommitdiff
path: root/openbox/client.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-07 03:46:41 +0000
committerDana Jansens <danakj@orodu.net>2003-04-07 03:46:41 +0000
commitdb086ef336e01ee23c777f3dc6678568565d44ef (patch)
tree2cc04723f59aff38de8065eb92d1bcab1d33b5f8 /openbox/client.h
parent1f775fdd864715abb622070a9b4dd38341d6da79 (diff)
put focus_cycle into focus.c, use it there in the action. improved it as well to handle odd cases like modal windows. added functions to client.c which are needed by the focus cycling routine.
Diffstat (limited to 'openbox/client.h')
-rw-r--r--openbox/client.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbox/client.h b/openbox/client.h
index 94bcf38c..89bdb518 100644
--- a/openbox/client.h
+++ b/openbox/client.h
@@ -410,6 +410,14 @@ void client_set_wm_state(Client *self, long state);
*/
void client_set_state(Client *self, Atom action, long data1, long data2);
+/* Given a Client, find the client that focus would actually be sent to if
+ you wanted to give focus to the specified Client. Will return the same
+ Client passed to it or another Client if appropriate. */
+Client *client_focus_target(Client *self);
+
+/* Returns if a client can be focused or not */
+gboolean client_focusable(Client *self);
+
/*! Attempt to focus the client window */
gboolean client_focus(Client *self);