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

Fix X11 clients getting stuck minimized #5566

Merged
merged 1 commit into from
Jul 22, 2020

Conversation

junglerobba
Copy link
Contributor

Usually it should be enough to simply not grant a client's
minimize request, however some applications (Steam, fullscreen
games in Wine) don't wait for the compositor and minimize anyway,
getting them stuck in an unrecoverable state.
Restoring them immediately lead to heavy flickering ( https://streamable.com/imhyj7 ) when unfocused
on my test application (Earth Defense Force 5 via Steam), so it's
preferable to grant their request without actually minimizing and
then restoring them once they are in focus again.

Should fix #4324

Copy link
Member

@RedSoxFan RedSoxFan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Just a few things before this can be merged.

sway/input/seat.c Outdated Show resolved Hide resolved
sway/input/seat.c Outdated Show resolved Hide resolved
sway/desktop/xwayland.c Show resolved Hide resolved
sway/desktop/xwayland.c Outdated Show resolved Hide resolved
sway/input/seat.c Outdated Show resolved Hide resolved
Usually it should be enough to simply not grant a client's
minimize request, however some applications (Steam, fullscreen
games in Wine) don't wait for the compositor and minimize anyway,
getting them stuck in an unrecoverable state.
Restoring them immediately lead to heavy flickering when unfocused
on my test application (Earth Defense Force 5 via Steam), so it's
preferable to grant their request without actually minimizing and
then restoring them once they are in focus again.
@RedSoxFan RedSoxFan merged commit 4f718e6 into swaywm:master Jul 22, 2020
@RedSoxFan
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

Black screen on some Wine games after they lose focus
2 participants