]> git.mdlowis.com Git - proto/labwc.git/commit
xwayland: fix possible loss of focus when multiple views are unmapped
authorJohn Lindgren <john@jlindgren.net>
Wed, 11 Jun 2025 20:12:56 +0000 (16:12 -0400)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 12 Jun 2025 19:33:25 +0000 (20:33 +0100)
commit5a50a02ba3e5d5a83f163ee603a2255779d941ab
tree3a0267a075face46cde76dca30b95023f6c14727
parent1b937ed2471393940b994a8aacbe5e0f2f84fc13
xwayland: fix possible loss of focus when multiple views are unmapped

Due to the asynchronous nature of view_offer_focus(), there was a race
condition that could result in no view remaining active when multiple
views were unmapped at once. Check for this and prevent it.
src/view-impl-common.c