mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
Pass modified mouse button events down to panel windows instead of dealing
2008-10-06 William Lachance <wrlach@gmail.com> 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
This commit is contained in:
parent
b1fb765d8e
commit
a49f986c67
@ -1,3 +1,12 @@
|
|||||||
|
2008-10-06 William Lachance <wrlach@gmail.com>
|
||||||
|
|
||||||
|
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 <tthurman@gnome.org>
|
2008-10-05 Thomas Thurman <tthurman@gnome.org>
|
||||||
|
|
||||||
Second half of the switch to using x-macros for keybindings so that
|
Second half of the switch to using x-macros for keybindings so that
|
||||||
|
@ -4920,8 +4920,11 @@ prefs_changed_callback (MetaPreference pref,
|
|||||||
while (tmp != NULL)
|
while (tmp != NULL)
|
||||||
{
|
{
|
||||||
MetaWindow *w = tmp->data;
|
MetaWindow *w = tmp->data;
|
||||||
meta_display_grab_focus_window_button (display, w);
|
if (w->type != META_WINDOW_DOCK)
|
||||||
meta_display_grab_window_buttons (display, w->xwindow);
|
{
|
||||||
|
meta_display_grab_focus_window_button (display, w);
|
||||||
|
meta_display_grab_window_buttons (display, w->xwindow);
|
||||||
|
}
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -659,8 +659,11 @@ meta_window_new_with_attrs (MetaDisplay *display,
|
|||||||
meta_window_ensure_frame (window);
|
meta_window_ensure_frame (window);
|
||||||
|
|
||||||
meta_window_grab_keys (window);
|
meta_window_grab_keys (window);
|
||||||
meta_display_grab_window_buttons (window->display, window->xwindow);
|
if (window->type != META_WINDOW_DOCK)
|
||||||
meta_display_grab_focus_window_button (window->display, window);
|
{
|
||||||
|
meta_display_grab_window_buttons (window->display, window->xwindow);
|
||||||
|
meta_display_grab_focus_window_button (window->display, window);
|
||||||
|
}
|
||||||
|
|
||||||
if (window->type == META_WINDOW_DESKTOP ||
|
if (window->type == META_WINDOW_DESKTOP ||
|
||||||
window->type == META_WINDOW_DOCK)
|
window->type == META_WINDOW_DOCK)
|
||||||
|
Loading…
Reference in New Issue
Block a user