diff options
-rw-r--r-- | libmate-desktop/mate-hsv.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/libmate-desktop/mate-hsv.c b/libmate-desktop/mate-hsv.c index cacec6b..67b49c7 100644 --- a/libmate-desktop/mate-hsv.c +++ b/libmate-desktop/mate-hsv.c @@ -612,15 +612,14 @@ set_cross_grab (MateHSV *hsv, cursor = gdk_cursor_new_for_display (gtk_widget_get_display (GTK_WIDGET (hsv)), GDK_CROSSHAIR); - gdk_device_grab (device, - priv->window, - GDK_OWNERSHIP_NONE, - FALSE, - GDK_POINTER_MOTION_MASK - | GDK_POINTER_MOTION_HINT_MASK - | GDK_BUTTON_RELEASE_MASK, - cursor, - time); + gdk_seat_grab (gdk_device_get_seat (device), + priv->window, + GDK_SEAT_CAPABILITY_ALL_POINTING, + FALSE, + cursor, + NULL, + NULL, + NULL); g_object_unref (cursor); } @@ -722,7 +721,7 @@ mate_hsv_button_release (GtkWidget *widget, g_assert_not_reached (); } - gdk_device_ungrab (gdk_event_get_device ((GdkEvent *) event), event->time); + gdk_seat_ungrab (gdk_device_get_seat (gdk_event_get_device ((GdkEvent *) event))); return TRUE; } |