dont use enter events from new windows appearing to focus them, unless underMouse is on

This commit is contained in:
Dana Jansens 2007-06-12 04:20:41 +00:00
parent 517e635752
commit ca4cfdbf38

View file

@ -532,8 +532,17 @@ void client_manage(Window window)
/* this has to happen before we try focus the window, but we want it to /* this has to happen before we try focus the window, but we want it to
happen after the client's stacking has been determined or it looks bad happen after the client's stacking has been determined or it looks bad
*/ */
{
gulong ignore_start;
if (!config_focus_under_mouse)
ignore_start = event_start_ignore_all_enters();
client_show(self); client_show(self);
if (!config_focus_under_mouse)
event_end_ignore_all_enters(ignore_start);
}
if (activate) { if (activate) {
gboolean stacked = client_restore_session_stacking(self); gboolean stacked = client_restore_session_stacking(self);
client_present(self, FALSE, !stacked); client_present(self, FALSE, !stacked);