From d85012ecfd7c0a44bf9d60df6aae318273813e92 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 22 Feb 2003 22:19:19 +0000 Subject: [PATCH] fix to unfocus window only when you leave the window frame, not when you 2003-02-22 Havoc Pennington * src/display.c (event_callback): fix to unfocus window only when you leave the window frame, not when you leave the window itself, unless window has no frame. #100248 fix from Orien Vandenbergh --- ChangeLog | 6 ++++++ src/display.c | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75d9f958d..f042e2a4c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-02-22 Havoc Pennington + + * src/display.c (event_callback): fix to unfocus window only when + you leave the window frame, not when you leave the window itself, + unless window has no frame. #100248 fix from Orien Vandenbergh + 2003-02-22 Havoc Pennington * src/display.c (meta_display_get_tab_next): when tabbing diff --git a/src/display.c b/src/display.c index 9213c8c43..1fe4be493 100644 --- a/src/display.c +++ b/src/display.c @@ -1499,13 +1499,8 @@ event_callback (XEvent *event, switch (meta_prefs_get_focus_mode ()) { case META_FOCUS_MODE_MOUSE: - /* This is kind of questionable; but we normally - * set focus to RevertToPointerRoot, so I guess - * leaving it on PointerRoot when nothing is focused - * is probably right. Anyway, unfocus the - * focused window. - */ if (window->has_focus && + (window->frame == NULL || frame_was_receiver) && event->xcrossing.mode != NotifyGrab && event->xcrossing.mode != NotifyUngrab && event->xcrossing.detail != NotifyInferior)