Fix focus handling with multiple awesome instances

When there are multiple X11 screens (i.e. :0.0 and :0.1) for zaphod mode
style X setups, this triggers a refresh of focus when the instance
running on a particular root receives the mouse

Fixes https://github.com/awesomeWM/awesome/issues/599.
This commit is contained in:
Kimball Thurston 2015-12-22 21:46:17 -08:00 committed by Daniel Hahler
parent 5e6a893207
commit fc8c91c075
1 changed files with 6 additions and 0 deletions

View File

@ -580,6 +580,12 @@ event_handle_enternotify(xcb_enter_notify_event_t *ev)
}
lua_pop(L, 1);
}
else if (ev->event == globalconf.screen->root) {
/* When there are multiple X screens with awesome running separate
* instances, reset focus.
*/
globalconf.focus.need_update = true;
}
}
/** The focus in event handler.