From a49f986c67e28b41bda372f18dd0c5ac26a3228e Mon Sep 17 00:00:00 2001 From: William Lachance Date: Mon, 6 Oct 2008 01:34:17 +0000 Subject: [PATCH] Pass modified mouse button events down to panel windows instead of dealing 2008-10-06 William Lachance Pass modified mouse button events down to panel windows instead of dealing with them ourselves. Closes #554428. * src/core/display.c (prefs_changed_callback): don't grab mouse buttons on panels * src/core/window.c (meta_window_new_with_attrs): ditto svn path=/trunk/; revision=3942 --- ChangeLog | 9 +++++++++ src/core/display.c | 7 +++++-- src/core/window.c | 7 +++++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index bbc7f22fc..02baa2ab6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2008-10-06 William Lachance + + Pass modified mouse button events down to panel windows + instead of dealing with them ourselves. Closes #554428. + + * src/core/display.c (prefs_changed_callback): don't grab mouse + buttons on panels + * src/core/window.c (meta_window_new_with_attrs): ditto + 2008-10-05 Thomas Thurman Second half of the switch to using x-macros for keybindings so that diff --git a/src/core/display.c b/src/core/display.c index d6c44d103..8169541ba 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -4920,8 +4920,11 @@ prefs_changed_callback (MetaPreference pref, while (tmp != NULL) { MetaWindow *w = tmp->data; - meta_display_grab_focus_window_button (display, w); - meta_display_grab_window_buttons (display, w->xwindow); + if (w->type != META_WINDOW_DOCK) + { + meta_display_grab_focus_window_button (display, w); + meta_display_grab_window_buttons (display, w->xwindow); + } tmp = tmp->next; } diff --git a/src/core/window.c b/src/core/window.c index 2b03b54ad..e4bb13b6c 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -659,8 +659,11 @@ meta_window_new_with_attrs (MetaDisplay *display, meta_window_ensure_frame (window); meta_window_grab_keys (window); - meta_display_grab_window_buttons (window->display, window->xwindow); - meta_display_grab_focus_window_button (window->display, window); + if (window->type != META_WINDOW_DOCK) + { + meta_display_grab_window_buttons (window->display, window->xwindow); + meta_display_grab_focus_window_button (window->display, window); + } if (window->type == META_WINDOW_DESKTOP || window->type == META_WINDOW_DOCK)