-
Notifications
You must be signed in to change notification settings - Fork 783
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
Reject requests for WM_STATE_ICONIC #3421
Conversation
For compatiblity reasons, Wine will request iconic state and cannot ensure that the WM has agreed on it; immediately revert to normal to avoid being stuck in a paused state.
If Wine sends WM_CHANGE_STATE, which i3 currently doesn't claim to support in _NET_SUPPORTED, why doesn't Wine check whether the window manager even supports it and doesn't try to iconify the client in that case? This can be a completely synchronous check on Wine's side. |
This actually sounds pretty reasonable. I'll ask over there. |
@Airblader From "Introduction" / "What is this spec?" in EWMH:
So, since this is not an EWMH-feature, you cannot expect it to be listed in |
That's a good point. I guess we should also not add it to _NET_SUPPORTED then, though. I don't like workarounds for clients (it's not i3's fault that wine has to deal with Windows), but I guess in this case there isn't much harm in it either. @Streetwalrus Do you think we could add a testcase for this, though? |
I'm not sure if this is testable. Besides the notification, there's no way to figure out what state the application is in as far as I know. I don't really like the idea of fixing it in i3 either but I don't really see how it could be done on the Wine side. |
Let's give it a go. |
Thanks! |
For compatiblity reasons, Wine will request iconic state and cannot ensure that the WM has agreed on it; immediately revert to normal to avoid being stuck in a paused state.
This is a follow-up on #3370. As suggested by @psychon and discussed in the Wine bug report, I've moved this to the notification handler to immediately tell clients that we do not want them to iconize. I've also made it clear that this workaround is specific to Wine.