From e0963e6b66703c01260c7d7c6ab6a15d142b8f2e Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 7 Jun 2003 05:07:08 +0000 Subject: [PATCH] drop the mouse button grabs for the focused window; we'll see if this 2003-06-07 Havoc Pennington * src/window.c (meta_window_notify_focus): drop the mouse button grabs for the focused window; we'll see if this breaks anything. It should fix #102209 --- ChangeLog | 6 ++++++ src/window.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1d6e1102c..96364d96a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-06-07 Havoc Pennington + + * src/window.c (meta_window_notify_focus): drop the mouse button + grabs for the focused window; we'll see if this breaks anything. + It should fix #102209 + Fri Jun 6 19:27:53 2003 Jonathan Blandford * src/metacity.schemas.in: fix the location of the schemas file. diff --git a/src/window.c b/src/window.c index 2386c02c9..06fd90f02 100644 --- a/src/window.c +++ b/src/window.c @@ -4030,6 +4030,9 @@ meta_window_notify_focus (MetaWindow *window, /* move into FOCUSED_WINDOW layer */ meta_window_update_layer (window); + + /* Ungrab click to focus button */ + meta_display_ungrab_focus_window_button (window->display, window->xwindow); } } else if (event->type == FocusOut || @@ -4066,6 +4069,9 @@ meta_window_notify_focus (MetaWindow *window, /* move out of FOCUSED_WINDOW layer */ meta_window_update_layer (window); + + /* Re-grab for click to focus */ + meta_display_grab_focus_window_button (window->display, window->xwindow); } }