aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/DesktopWindow.cxx
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2011-07-18 07:42:16 +0000
committerPeter Åstrand <astrand@cendio.se>2011-07-18 07:42:16 +0000
commitf52860b7e30739f86f813676a030732b7dfa155e (patch)
tree249eed155bdef98597a9181e4ac8a99d86ac43fd /vncviewer/DesktopWindow.cxx
parent4333220effbf75b39b9b740acb9c050b959dc427 (diff)
downloadtigervnc-f52860b7e30739f86f813676a030732b7dfa155e.tar.gz
tigervnc-f52860b7e30739f86f813676a030732b7dfa155e.zip
XGrabKeyboard needs to use CurrentTime rather than
fl_event_time. Otherwise, the second delayed grab attempt will often fail. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4598 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/DesktopWindow.cxx')
-rw-r--r--vncviewer/DesktopWindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx
index 14f720cf..b4b2ae9d 100644
--- a/vncviewer/DesktopWindow.cxx
+++ b/vncviewer/DesktopWindow.cxx
@@ -291,7 +291,7 @@ void DesktopWindow::grabKeyboard()
int ret;
ret = XGrabKeyboard(fl_display, fl_xid(this), True,
- GrabModeAsync, GrabModeAsync, fl_event_time);
+ GrabModeAsync, GrabModeAsync, CurrentTime);
if (ret) {
if (ret == AlreadyGrabbed) {
// It seems like we can race with the WM in some cases.