]> git.mdlowis.com Git - proto/labwc.git/commit
xwayland: assign view->surface earlier in map handler
authorJohan Malm <jgm323@gmail.com>
Sat, 25 Nov 2023 17:40:44 +0000 (17:40 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 25 Nov 2023 20:11:43 +0000 (20:11 +0000)
commit49365b26d766b50ca326a1ebc4cacd92f9047535
tree26937138b384cbef337a31d1e3634d01b35a40c0
parent1b8e404c9c6078088ba4b4eb48ae971702810497
xwayland: assign view->surface earlier in map handler

...as it needs to be set before honouring xwayland_surface->fullscreen
because that calls desktop_update_top_layer_visiblity() which relies on
view->surface being set in view_is_focusable() since 13d0b14.

Fix bug introduced by PR #1237 which fails to hide the xfce4-panel (or
any other layer-shell client in the top layer) whilst gaming in
fullscreen. The bug can be observed with the following games:

- Alan Wake 2 (wine)
- Starfield (steam+proton)
- Cyberpunk (steam+proton)
- Quake 1 Remaster (steam-native)

Fixes: #661 (the last bit of it)
Reported-by: @ScarecrowDM
Helped-by: @Consolatis
src/xwayland.c