summaryrefslogtreecommitdiff
path: root/src/test-window.c
diff options
context:
space:
mode:
authorAlexei Sorokin <[email protected]>2017-03-28 16:18:00 +0300
committerAlexei Sorokin <[email protected]>2017-03-28 16:18:00 +0300
commita7b8a687fa461b752b944bcdfda5a73a61088d12 (patch)
treee0b7356916e31458d3d273ca21745b04b6eb19fa /src/test-window.c
parent5c52f7867c7e46897b6c4966cade4975042f383e (diff)
downloadmate-screensaver-a7b8a687fa461b752b944bcdfda5a73a61088d12.tar.bz2
mate-screensaver-a7b8a687fa461b752b944bcdfda5a73a61088d12.tar.xz
[GTK+3.20] Switch to GdkSeat
This changes the code quite a lot as both grabbing the pointer and the keyboard have to be done simultaneously now.
Diffstat (limited to 'src/test-window.c')
-rw-r--r--src/test-window.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test-window.c b/src/test-window.c
index f07c5c7..1a5fd42 100644
--- a/src/test-window.c
+++ b/src/test-window.c
@@ -57,12 +57,11 @@ static void
window_show_cb (GSWindow *window,
gpointer data)
{
- /* Grab keyboard so dialog can be used */
+ /* move devices grab so that dialog can be used */
gs_grab_move_to_window (grab,
gs_window_get_gdk_window (window),
gs_window_get_display (window),
- FALSE);
-
+ TRUE, FALSE);
}
static gboolean
@@ -92,7 +91,7 @@ window_destroyed_cb (GtkWindow *window,
gpointer data)
{
disconnect_window_signals (GS_WINDOW (window));
- gs_grab_release (grab);
+ gs_grab_release (grab, TRUE);
gtk_main_quit ();
}