Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a better way to detect fullscreen changes #637

Open
tsipinakis opened this issue Jun 20, 2019 · 2 comments
Open

Find a better way to detect fullscreen changes #637

tsipinakis opened this issue Jun 20, 2019 · 2 comments

Comments

@tsipinakis
Copy link
Member

tsipinakis commented Jun 20, 2019

References: #613, bbidulock/icewm#347

As mentioned in the issues above we're currently relying on the window manager to send either a PropertyNotify or ConfigureNotify on the root window in order to update the fullscreen status, to hide and show notifications as appropriate.

However, this isn't directly EWMH compliant. And unfortunately from my research there is no simple way to do this with EWMH hints.

The one way I can think of would be to monitor the Focus{In,Out} events in order to subscribe to PropertyNotify events of each window when focus is gained and unsubscribe when focus is lost. We'd then have to monitor the _NET_WM_STATE_FULLSCREEN hint on that window.

Unfortunately this seems quite cumbersome to implement on a first look. But unless there's another solution this seems the only way to be properly compliant.

@bynect
Copy link
Member

bynect commented Feb 21, 2024

@fwsmit do you know if any work was done into this regard?

@fwsmit
Copy link
Member

fwsmit commented Feb 21, 2024

Not that I remember. On wayland this is not an issue, though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants