diff options
author | Alexei Sorokin <[email protected]> | 2017-03-28 16:18:00 +0300 |
---|---|---|
committer | Alexei Sorokin <[email protected]> | 2017-03-28 16:18:00 +0300 |
commit | a7b8a687fa461b752b944bcdfda5a73a61088d12 (patch) | |
tree | e0b7356916e31458d3d273ca21745b04b6eb19fa /src/gs-monitor.c | |
parent | 5c52f7867c7e46897b6c4966cade4975042f383e (diff) | |
download | mate-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/gs-monitor.c')
-rw-r--r-- | src/gs-monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gs-monitor.c b/src/gs-monitor.c index 42dead3..732a59b 100644 --- a/src/gs-monitor.c +++ b/src/gs-monitor.c @@ -102,7 +102,7 @@ static gboolean release_grab_timeout(GSMonitor* monitor) if (! manager_active) { - gs_grab_release(monitor->priv->grab); + gs_grab_release(monitor->priv->grab, TRUE); } monitor->priv->release_grab_id = 0; @@ -128,7 +128,7 @@ static gboolean watcher_idle_notice_cb(GSWatcher* watcher, gboolean in_effect, G if (activation_enabled && ! inhibited) { /* start slow fade */ - if (gs_grab_grab_offscreen(monitor->priv->grab, FALSE)) + if (gs_grab_grab_offscreen(monitor->priv->grab, FALSE, FALSE)) { gs_fade_async(monitor->priv->fade, FADE_TIMEOUT, NULL, NULL); } |