diff options
| author | Dana Jansens <danakj@orodu.net> | 2009-12-08 11:11:41 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2009-12-08 13:56:34 -0500 |
| commit | 97890e21cdb23ce3fc31dd1e0ce24537a45cc599 (patch) | |
| tree | 951d9db4cf7349b8ca09a89fd6ae9e8a28a5811d /openbox/event.c | |
| parent | 8237564b4784c69ab50a9291d503850cb6018f67 (diff) | |
Change _net_active_window behaviour.
Move focus on _net_active_window "app" requests if focus stealing would be
allowed. If focus is not given to the target window and it is hilited (or
any other situation where it is hilited) and the window is on another desktop,
then also raise it and make it the LRU window, so when you switch desktops
you go right to it.
Diffstat (limited to 'openbox/event.c')
| -rw-r--r-- | openbox/event.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/openbox/event.c b/openbox/event.c index 71fed413..93c5fa21 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1323,10 +1323,7 @@ static void event_handle_client(ObClient *client, XEvent *e) (e->xclient.data.l[0] == 2 ? "user" : "INVALID")))); /* XXX make use of data.l[2] !? */ if (e->xclient.data.l[0] == 1 || e->xclient.data.l[0] == 2) { - /* don't use the user's timestamp for client_focus, cuz if it's - an old broken timestamp (happens all the time) then focus - won't move even though we're trying to move it - event_curtime = e->xclient.data.l[1];*/ + event_curtime = e->xclient.data.l[1]; if (e->xclient.data.l[1] == 0) ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_ACTIVE_WINDOW message for window %s is" |
