]> source.dussan.org Git - tigervnc.git/commitdiff
Use current server time for XUngrabPointer
authorPeter Åstrand (astrand) <astrand@cendio.se>
Mon, 15 Jan 2018 07:27:19 +0000 (08:27 +0100)
committerPeter Åstrand (astrand) <astrand@cendio.se>
Mon, 15 Jan 2018 07:27:19 +0000 (08:27 +0100)
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

index 1bc413d125b5370fd9e7ff234300622ace489f24..76527799c37e5ebd7c76c3556708a940d26f1feb 100644 (file)
@@ -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
 }