]> source.dussan.org Git - tigervnc.git/commit
Only do initial LED sync if focused
authorPierre Ossman <ossman@cendio.se>
Thu, 28 Feb 2019 09:57:40 +0000 (10:57 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 28 Feb 2019 09:57:40 +0000 (10:57 +0100)
commit20634399bd00caa60df7520364ed607911a378e5
tree7efea92fcfd799ab5adfc2bd33ec48f9e63a13e9
parent9c458ae5a453260578def82c98e63bf2f6dc9043
Only do initial LED sync if focused

We always sync when we get focus, so this code path is really only
for when the server announces LED state support after we already
have focus.

Make sure we only handle this specific scenario as otherwise we
could end up syncing twice, which just toggles things back and forth
and ends up syncing incorrectly.
vncviewer/Viewport.cxx