Przeglądaj źródła

Sanity check when cleaning up keymap changes

Make sure we don't send a bogus request to the X server in the (common)
case that we don't actually have anything to restore.
tags/v1.13.90
Pierre Ossman 1 rok temu
rodzic
commit
1e3484f201
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4
    0
      unix/x0vncserver/XDesktop.cxx

+ 4
- 0
unix/x0vncserver/XDesktop.cxx Wyświetl plik

@@ -481,6 +481,10 @@ void XDesktop::deleteAddedKeysyms(Display* dpy) {
}
}

// Did we actually find something to remove?
if (highestKeyCode < lowestKeyCode)
return;

changes.changed |= XkbKeySymsMask;
changes.first_key_sym = lowestKeyCode;
changes.num_key_syms = highestKeyCode - lowestKeyCode + 1;

Ładowanie…
Anuluj
Zapisz