From db086ef336e01ee23c777f3dc6678568565d44ef Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 7 Apr 2003 03:46:41 +0000 Subject: 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. --- openbox/client.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'openbox/client.h') 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); -- cgit v1.2.3