check and warp pointer on _NET_ACTIVE_WINDOW

This commit is contained in:
Sean Pringle
2014-12-30 20:32:31 +10:00
parent 8590b1325d
commit 89cfacfb32

12
event.c
View File

@@ -174,8 +174,16 @@ void client_message(XEvent *ev)
Client *c = window_build_client(e->window); Client *c = window_build_client(e->window);
if (c && c->manage) if (c && c->manage)
{ {
if (e->message_type == atoms[_NET_ACTIVE_WINDOW]) client_activate(c); if (e->message_type == atoms[_NET_ACTIVE_WINDOW])
if (e->message_type == atoms[_NET_CLOSE_WINDOW]) action_close(NULL, 0, c); {
client_activate(c);
spot_warp_pointer(c->spot, c->monitor);
}
else
if (e->message_type == atoms[_NET_CLOSE_WINDOW])
{
action_close(NULL, 0, c);
}
} }
client_free(c); client_free(c);
} }