-
Notifications
You must be signed in to change notification settings - Fork 919
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
Minimise behaviour #783
Comments
I can't speak for other platforms, but on wayland it is not possible for a window to know whether is it currently displayed or not. Depending on the compositor it might be inferred if it appears that the set of current ouputs of the window is empty (so the window is not displayed on any output), but I expect this to be unreliable at best. |
Good to know about wayland. As the windows behaviour surprised me, maybe we should note in the I couldn't find any info on minimising behaviour in the docs, hence this issue. |
I'm not comfortable with this being a documented feature, seeing as it's a hacky way to get the data and we don't know if it even works on non-Windows platforms. Honestly, I'd prefer to suppress the resize event on Windows to prevent people from relying on it, then see about introducing minimized events once the platform support story becomes more clear. The behavior on X11 and MacOS needs to be investigated before any action on this would get taken, though. |
This is actually something Alacritty has run into (see alacritty/alacritty#3081) and I can confirm that this is only the case on Windows. |
I noticed recently that minimising in Windows causes a
WindowEvent::Resized(size=0)
event, this doesn't seem to happen in X11.On windows this becomes a way to tell that the window has been minimised. Is there a way I can tell this on X11, or in general?
The text was updated successfully, but these errors were encountered: