~whynothugo/shotman

2754c8ed0290736ff71d7054df412ccbb662910c — Hugo Osvaldo Barrera 3 months ago fc15a70
Create detector surface in layer overlay

Up to sway 1.9, wl_surface::enter events were delivered to layer shell
surfaces even if they were not visible. With the latest (yet unreleased)
changes, this is no longer the case.

Strictly speaking, a compositor may delay the wl_surface::enter event
until the surface is visible, so ensure that it is always made visible.

See: https://github.com/swaywm/sway/issues/7984
1 files changed, 1 insertions(+), 1 deletions(-)

M src/main.rs
M src/main.rs => src/main.rs +1 -1
@@ 425,7 425,7 @@ impl State {
        let detector_layer_surface = wlr_layer_shell.get_layer_surface(
            &detector_surface,
            None,
            zwlr_layer_shell_v1::Layer::Background,
            zwlr_layer_shell_v1::Layer::Overlay,
            String::from("shotman"),
            qh,
            OutputDetector,