Hi, Thanks for this great tool :) I trying to implement it in my toolbox. I just try it with sway 1.5.1 on wayland 1.19.0 on archlinux, and sadly, i can't make working the feature i was searching, a way to detect in i'm in fullscreen or not. I tried your example for mpv detection, and a more global find like this
$ wlrctl toplevel list state:fullscreen
I'm not able to get a list of app in fullscreen, but i can see ALL my app, in the state:unfullscreen
.
Any idea of what i miss ? Tell me if I can help you :-)
sway 1.5.1 lacks the fullscreen toplevel event, so clients can't detect it.
It was added in https://github.com/swaywm/sway/pull/5589 and will work in the next release of sway (or any build from master). The output hint argument has also since been added to sway in https://github.com/swaywm/sway/pull/5955 but is not yet implemented in wlrctl.
Thanks for your quick reply ! :-)