From f278ec41e4c310da218563e7d443df32783e26e4 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 8 Apr 2003 01:03:26 +0000 Subject: fallback to transients' parents when possible. return the Client* which was focused from focus_cycle --- openbox/focus.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'openbox/focus.h') diff --git a/openbox/focus.h b/openbox/focus.h index 6a86965a..4c8d4c98 100644 --- a/openbox/focus.h +++ b/openbox/focus.h @@ -30,8 +30,9 @@ void focus_set_client(struct Client *client); /*! Call this when you need to focus something! */ void focus_fallback(gboolean switching_desks); -/*! Cycle focus amongst windows */ -void focus_cycle(gboolean forward, gboolean linear, gboolean done, - gboolean cancel); +/*! 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 -- cgit v1.2.3