From 841e9f32d5952d6f16f67294c2da8bf395066a9b Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 2 Oct 2017 11:05:10 +0200 Subject: [PATCH] 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. --- vncviewer/DesktopWindow.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.39.5