Handle monitors in 'enter_notify'

This commit is contained in:
Bastien Dejean 2012-10-23 13:48:09 +02:00
parent 554e99d93d
commit 58c0c96503

View file

@ -277,8 +277,10 @@ void enter_notify(xcb_generic_event_t *evt)
return;
window_location_t loc;
if (locate_window(e->event, &loc))
if (locate_window(e->event, &loc)) {
select_monitor(loc.monitor);
focus_node(loc.monitor, loc.desktop, loc.node, true);
}
}
void client_message(xcb_generic_event_t *evt)