[mutter] Remove support for the debugging window grabs feature
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Remove support for the debugging window grabs feature
- Date: Thu, 14 Aug 2014 22:21:30 +0000 (UTC)
commit 69a35bb85fc31b06097aeb7bac5565aac2fde99d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Aug 14 15:47:51 2014 -0400
Remove support for the debugging window grabs feature
mutter doesn't really run nested in a useful way anymore.
src/core/keybindings.c | 16 ----------------
src/core/window.c | 3 ---
2 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/core/keybindings.c b/src/core/keybindings.c
index 0ec7a37..87b2660 100644
--- a/src/core/keybindings.c
+++ b/src/core/keybindings.c
@@ -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;
}
}
diff --git a/src/core/window.c b/src/core/window.c
index 45638c8..2ff1995 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]