When becoming invisible, a NULL buffer is attached to the toplevel's surface which unmaps it. The compositor resets their state and the surface may also be considered unconfigured. Upon becoming visible, the surface must be re-mapped using the same process during initialization (commit without a buffer and wait for configure) before we begin attaching an actual buffer. The default properties should also be recovered.
When becoming invisible, a NULL buffer is attached to the toplevel's surface which unmaps it. The compositor resets their state and the surface may also be considered unconfigured. Upon becoming visible, the surface must be re-mapped using the same process during initialization (commit without a buffer and wait for configure) before we begin attaching an actual buffer. The default properties should also be recovered.
Fixes: https://github.com/ValveSoftware/gamescope/issues/1456 Fixes: https://github.com/ValveSoftware/gamescope/issues/1451 (probably) Fixes: https://github.com/ValveSoftware/gamescope/issues/1488 (probably) Fixes: https://github.com/ValveSoftware/gamescope/issues/1533