From 361bf6af5c7de09f30f3cf4a220b3f84a3fe451d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 15 May 2007 04:32:59 +0000 Subject: simplify focus handling a bit. no need to listen to focus going to the frame because if it ever does that, the window is unmapping and the frame will just unmap and send it to root. make focus fallback a lil more robust, it checks for errors when it sets focus on the window, and if an error occured it will focus the next option. --- openbox/client.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'openbox/client.h') diff --git a/openbox/client.h b/openbox/client.h index 5526c282..9019c62d 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -532,9 +532,10 @@ ObClient *client_focus_target(ObClient *self); gboolean client_can_focus(ObClient *self); /*! Attempt to focus the client window - NOTE: You should validate the client before calling this !! (client_validate) -*/ -gboolean client_focus(ObClient *self); + If you care if focus actually went to the window or not, pass checkinvalid + as TRUE. + */ +gboolean client_focus(ObClient *self, gboolean checkinvalid); /*! Activates the client for use, focusing, uniconifying it, etc. To be used when the user deliberately selects a window for use. -- cgit v1.2.3