mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
Remove support for the debugging window grabs feature
mutter doesn't really run nested in a useful way anymore.
This commit is contained in:
parent
a3bb6c12e5
commit
69a35bb85f
@ -1034,7 +1034,6 @@ meta_display_grab_window_buttons (MetaDisplay *display,
|
||||
|
||||
if (display->window_grab_modifiers != 0)
|
||||
{
|
||||
gboolean debug = g_getenv ("MUTTER_DEBUG_BUTTON_GRABS") != NULL;
|
||||
int i;
|
||||
for (i = 1; i < 4; i++)
|
||||
{
|
||||
@ -1042,15 +1041,6 @@ meta_display_grab_window_buttons (MetaDisplay *display,
|
||||
TRUE,
|
||||
FALSE,
|
||||
i, display->window_grab_modifiers);
|
||||
|
||||
/* This is for debugging, since I end up moving the Xnest
|
||||
* otherwise ;-)
|
||||
*/
|
||||
if (debug)
|
||||
meta_change_button_grab (display, xwindow,
|
||||
TRUE,
|
||||
FALSE,
|
||||
i, ControlMask);
|
||||
}
|
||||
|
||||
/* In addition to grabbing Alt+Button1 for moving the window,
|
||||
@ -1070,7 +1060,6 @@ void
|
||||
meta_display_ungrab_window_buttons (MetaDisplay *display,
|
||||
Window xwindow)
|
||||
{
|
||||
gboolean debug;
|
||||
int i;
|
||||
|
||||
if (meta_is_wayland_compositor ())
|
||||
@ -1079,7 +1068,6 @@ meta_display_ungrab_window_buttons (MetaDisplay *display,
|
||||
if (display->window_grab_modifiers == 0)
|
||||
return;
|
||||
|
||||
debug = g_getenv ("MUTTER_DEBUG_BUTTON_GRABS") != NULL;
|
||||
i = 1;
|
||||
while (i < 4)
|
||||
{
|
||||
@ -1087,10 +1075,6 @@ meta_display_ungrab_window_buttons (MetaDisplay *display,
|
||||
FALSE, FALSE, i,
|
||||
display->window_grab_modifiers);
|
||||
|
||||
if (debug)
|
||||
meta_change_button_grab (display, xwindow,
|
||||
FALSE, FALSE, i, ControlMask);
|
||||
|
||||
++i;
|
||||
}
|
||||
}
|
||||
|
@ -7904,9 +7904,6 @@ meta_window_handle_ungrabbed_event (MetaWindow *window,
|
||||
*/
|
||||
|
||||
grab_mask = display->window_grab_modifiers;
|
||||
if (g_getenv ("MUTTER_DEBUG_BUTTON_GRABS"))
|
||||
grab_mask |= CLUTTER_CONTROL_MASK;
|
||||
|
||||
unmodified = (event->button.modifier_state & grab_mask) == 0;
|
||||
fully_modified = grab_mask && (event->button.modifier_state & grab_mask) == grab_mask;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user