[Spice-devel] [PATCH spice-gtk 2/2] widget: Use GDK_GRAB_FAILED with Gtk >= 3.16
Pavel Grunt
pgrunt at redhat.com
Thu Jun 2 13:49:06 UTC 2016
Although is not mentioned in Gtk docs, the value was defined in 3.16.
Reported-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>
---
src/spice-widget.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/spice-widget.c b/src/spice-widget.c
index d0fa912..8998daf 100644
--- a/src/spice-widget.c
+++ b/src/spice-widget.c
@@ -934,6 +934,9 @@ static GdkGrabStatus do_pointer_grab(SpiceDisplay *display)
{
SpiceDisplayPrivate *d = display->priv;
GdkWindow *window = GDK_WINDOW(gtk_widget_get_window(GTK_WIDGET(display)));
+#if !GTK_CHECK_VERSION(3,16,0)
+#define GDK_GRAB_FAILED 5
+#endif
GdkGrabStatus status = GDK_GRAB_FAILED;
GdkCursor *blank = get_blank_cursor();
--
2.8.3
More information about the Spice-devel
mailing list