drop the mouse button grabs for the focused window; we'll see if this

2003-06-07  Havoc Pennington  <hp@pobox.com>

	* 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
This commit is contained in:
Havoc Pennington 2003-06-07 05:07:08 +00:00 committed by Havoc Pennington
parent 6262db51a2
commit e0963e6b66
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-06-07 Havoc Pennington <hp@pobox.com>
* 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 <jrb@gnome.org> Fri Jun 6 19:27:53 2003 Jonathan Blandford <jrb@gnome.org>
* src/metacity.schemas.in: fix the location of the schemas file. * src/metacity.schemas.in: fix the location of the schemas file.

View File

@ -4030,6 +4030,9 @@ meta_window_notify_focus (MetaWindow *window,
/* move into FOCUSED_WINDOW layer */ /* move into FOCUSED_WINDOW layer */
meta_window_update_layer (window); 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 || else if (event->type == FocusOut ||
@ -4066,6 +4069,9 @@ meta_window_notify_focus (MetaWindow *window,
/* move out of FOCUSED_WINDOW layer */ /* move out of FOCUSED_WINDOW layer */
meta_window_update_layer (window); meta_window_update_layer (window);
/* Re-grab for click to focus */
meta_display_grab_focus_window_button (window->display, window->xwindow);
} }
} }