mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
Handle monitors in 'enter_notify'
This commit is contained in:
parent
554e99d93d
commit
58c0c96503
1 changed files with 3 additions and 1 deletions
4
events.c
4
events.c
|
@ -277,9 +277,11 @@ void enter_notify(xcb_generic_event_t *evt)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
window_location_t loc;
|
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);
|
focus_node(loc.monitor, loc.desktop, loc.node, true);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void client_message(xcb_generic_event_t *evt)
|
void client_message(xcb_generic_event_t *evt)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue