From 5f4972547d43f271e03d6113aae57d1654c683e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20=C3=85strand=20=28astrand=29?= Date: Mon, 15 Jan 2018 08:27:19 +0100 Subject: [PATCH] Use current server time for XUngrabPointer Similar to 841e9f32d5952d6f16f67294c2da8bf395066a9b but for the pointer. Fixes a problem where the desktop environment is unresponsive (to the mouse) after fullscreen exit; Fixes #579. --- vncviewer/DesktopWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 1bc413d1..76527799 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -864,7 +864,7 @@ void DesktopWindow::ungrabPointer() { mouseGrabbed = false; #if !defined(WIN32) && !defined(__APPLE__) - XUngrabPointer(fl_display, fl_event_time); + XUngrabPointer(fl_display, CurrentTime); #endif } -- 2.39.5