]> source.dussan.org Git - tigervnc.git/commitdiff
Use current server time for XUngrabKeyboard
authorPierre Ossman <ossman@cendio.se>
Mon, 2 Oct 2017 09:05:10 +0000 (11:05 +0200)
committerPierre Ossman <ossman@cendio.se>
Mon, 2 Oct 2017 09:05:10 +0000 (11:05 +0200)
We might be calling this outside a normal FLTK event, so we cannot
trust fl_event_time to have a sane value.

vncviewer/DesktopWindow.cxx

index 1f3332b10f7dca1d23247617d5c8843a9f0dd9a4..1bc413d125b5370fd9e7ff234300622ace489f24 100644 (file)
@@ -829,7 +829,7 @@ void DesktopWindow::ungrabKeyboard()
   if (Fl::grab())
     return;
 
-  XUngrabKeyboard(fl_display, fl_event_time);
+  XUngrabKeyboard(fl_display, CurrentTime);
 #endif
 }