diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-22 20:49:31 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-22 20:49:31 +0000 |
| commit | 63a6a1f0533c3b453b5538a13e8fcb4344c3f247 (patch) | |
| tree | 88b16d60012d54819920e8ad9ab7c8585c6458d6 | |
| parent | 6af116c87273451dd5b0017642c600861234671e (diff) | |
don't use the timestamp and such fields when the _NET_ACTIVE_WINDOW is using the old spec
| -rw-r--r-- | openbox/event.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/openbox/event.c b/openbox/event.c index aa082e68..d7c723d1 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1227,11 +1227,16 @@ static void event_handle_client(ObClient *client, XEvent *e) (e->xclient.data.l[0] == 1 ? "application" : (e->xclient.data.l[0] == 2 ? "user" : "INVALID")))); /* XXX make use of data.l[2] !? */ - event_curtime = e->xclient.data.l[1]; - if (event_curtime == 0) + if (e->xclient.data.l[0] == 1 || e->xclient.data.l[0] == 2) { + event_curtime = e->xclient.data.l[1]; + if (event_curtime == 0) + ob_debug_type(OB_DEBUG_APP_BUGS, + "_NET_ACTIVE_WINDOW message for window %s is" + " missing a timestamp\n", client->title); + } else ob_debug_type(OB_DEBUG_APP_BUGS, "_NET_ACTIVE_WINDOW message for window %s is " - "missing a timestamp\n", client->title); + "missing source indication\n"); client_activate(client, FALSE, (e->xclient.data.l[0] == 0 || e->xclient.data.l[0] == 2)); |
