From: Pierre Ossman Date: Mon, 2 Oct 2017 09:05:10 +0000 (+0200) Subject: Use current server time for XUngrabKeyboard X-Git-Tag: v1.8.90~97 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=841e9f32d5952d6f16f67294c2da8bf395066a9b;p=tigervnc.git Use current server time for XUngrabKeyboard We might be calling this outside a normal FLTK event, so we cannot trust fl_event_time to have a sane value. --- diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index 1f3332b1..1bc413d1 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -829,7 +829,7 @@ void DesktopWindow::ungrabKeyboard() if (Fl::grab()) return; - XUngrabKeyboard(fl_display, fl_event_time); + XUngrabKeyboard(fl_display, CurrentTime); #endif }