diff options
-rw-r--r-- | unix/x0vncserver/XDesktop.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/x0vncserver/XDesktop.cxx b/unix/x0vncserver/XDesktop.cxx index 5f5366b7..19517929 100644 --- a/unix/x0vncserver/XDesktop.cxx +++ b/unix/x0vncserver/XDesktop.cxx @@ -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; |