summaryrefslogtreecommitdiff
path: root/src/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/display.c')
-rw-r--r--src/display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/display.c b/src/display.c
index 6fffee1..02797ac 100644
--- a/src/display.c
+++ b/src/display.c
@@ -1784,7 +1784,7 @@ event_callback (XEvent *event,
switch (meta_prefs_get_focus_mode ())
{
case META_FOCUS_MODE_MOUSE:
- if (window->has_focus &&
+ if (window == display->expected_focus_window &&
(window->frame == NULL || frame_was_receiver) &&
event->xcrossing.mode != NotifyGrab &&
event->xcrossing.mode != NotifyUngrab &&