[Spice-devel] [PATCH 3/4] Add SPICE_NOGRAB environment variable for debugging
Marc-André Lureau
marcandre.lureau at gmail.com
Wed Oct 19 02:29:29 PDT 2011
---
gtk/spice-widget.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index fa7f675..5f8b301 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -406,6 +406,9 @@ static void try_keyboard_grab(SpiceDisplay *display)
SpiceDisplayPrivate *d = SPICE_DISPLAY_GET_PRIVATE(display);
GdkGrabStatus status;
+ if (g_getenv("SPICE_NOGRAB"))
+ return;
+
if (d->keyboard_grab_active)
return;
@@ -524,6 +527,9 @@ static void try_mouse_grab(GtkWidget *widget)
SpiceDisplay *display = SPICE_DISPLAY(widget);
SpiceDisplayPrivate *d = SPICE_DISPLAY_GET_PRIVATE(display);
+ if (g_getenv("SPICE_NOGRAB"))
+ return;
+
if (!d->mouse_grab_enable)
return;
if (d->mouse_mode != SPICE_MOUSE_MODE_SERVER)
--
1.7.6.2
More information about the Spice-devel
mailing list