diff options
author | Pierre Ossman <ossman@cendio.se> | 2017-10-02 11:05:10 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2017-10-02 11:05:10 +0200 |
commit | 841e9f32d5952d6f16f67294c2da8bf395066a9b (patch) | |
tree | 6b3dd599f4f8a2e8c789ede141dc23bccfc41d75 /vncviewer/DesktopWindow.cxx | |
parent | 728b407c178d9f6276f6f501d167dc2d7189016d (diff) | |
download | tigervnc-841e9f32d5952d6f16f67294c2da8bf395066a9b.tar.gz tigervnc-841e9f32d5952d6f16f67294c2da8bf395066a9b.zip |
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.
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r-- | vncviewer/DesktopWindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |