From: Peter Åstrand (astrand) Date: Mon, 15 Jan 2018 07:27:19 +0000 (+0100) Subject: Use current server time for XUngrabPointer X-Git-Tag: v1.8.90~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5f4972547d43f271e03d6113aae57d1654c683e2;p=tigervnc.git 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. --- 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 }