Ver código fonte

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 ano atrás
pai
commit
1e3484f201
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4
    0
      unix/x0vncserver/XDesktop.cxx

+ 4
- 0
unix/x0vncserver/XDesktop.cxx Ver arquivo

} }
} }


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

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

Carregando…
Cancelar
Salvar