]> source.dussan.org Git - tigervnc.git/commit
Only grab keyboard when we have focus
authorSamuel Mannehed <samuel@cendio.se>
Thu, 23 Sep 2021 14:31:59 +0000 (16:31 +0200)
committerSamuel Mannehed <samuel@cendio.se>
Wed, 6 Oct 2021 15:20:57 +0000 (17:20 +0200)
commitb74f5cf5abcea636516640c0bd00506ac39cf860
tree5f93106c18a8d78a591e5c7aa7052cbcde081ce9
parent12978dff96492384de32059326cc0b64b681f26a
Only grab keyboard when we have focus

There was an issue with the new grabs that were introduced in commit
2289342de7222e4ff2483eae95bb9898830e6097. On macOS when running
vncviewer in fullscreen on one monitor, we saw that we sometimes got
resize and fullscreen events when switching the focus away from
vncviewer. With the changes in the commit mentioned above this meant
that we immediately grabbed the keyboard again, thus never releasing it.

Fixes #1332.

(cherry picked from commit 72e94ca93d3ada8fb7f518fa65644d2bc172bd4b)
vncviewer/DesktopWindow.cxx
vncviewer/DesktopWindow.h