summaryrefslogtreecommitdiff
path: root/openbox/client.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-15 04:32:59 +0000
committerDana Jansens <danakj@orodu.net>2007-05-15 04:32:59 +0000
commit361bf6af5c7de09f30f3cf4a220b3f84a3fe451d (patch)
treef028b6185726e8ebf0518cac40477ac7f9b75d29 /openbox/client.h
parentf5597c060e0fda3b8fffc19c9b8974dde463a962 (diff)
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.
Diffstat (limited to 'openbox/client.h')
-rw-r--r--openbox/client.h7
1 files changed, 4 insertions, 3 deletions
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.