Procházet zdrojové kódy

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
tags/v1.1.90
Peter Åstrand před 13 roky
rodič
revize
f52860b7e3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      vncviewer/DesktopWindow.cxx

+ 1
- 1
vncviewer/DesktopWindow.cxx Zobrazit soubor

@@ -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.

Načítá se…
Zrušit
Uložit