-
Notifications
You must be signed in to change notification settings - Fork 45
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
Fullscreen games running in xwayland become non-functional once focus is lost #475
Comments
This could be related to #231. I fixed one issue related to that, but there seem to be more problems. For Linux-native SDL games, does setting |
It appears it does |
It definitely seems to be related to fullscreen apps minimizing. Which happens to function when wayland apps do it. |
Also happens both in tiling and floating modes if that info helps |
Hm, odd that disabling We have several issues with Xwayland still. There's a lot of subtle details in getting the X window manager logic to play along with all clients. |
Testing on Arch Linux it exhibits different behavior, Terraria freezes on focus lost with SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS set to 0, but crashes if it's set to 1 |
This might be useful: labwc/labwc#960 "view: add minimize method and call wlr_xwayland_surface_set_minimized() for xwayland surfaces on (un)minimize" (Jun 25, 2023) |
Apparently the crashing was just an issue with the game, games just freeze in fullscreen in general now, but not in borderless windowed |
xwayland in rootful fullscreen does not appear to exhibit this issue |
I happened to use xwayland-run to attempt this which technically spawns a new xwayland instance with arguments I choose. I just use the arguments |
github is weird and my message dissappeared but it does seem to be related to, as my issues only appear to happen when direct scan out is triggered. Smithay/smithay#1336 |
This includes freezing, black screens, other artifacts.
Tested with various games that I've found to work with Wayland and X11(using the SDL_VIDEODRIVER variable) including Terraria, Factorio, and Team Fortress 2. Wine games seem to always exhibit this behavior including ones that lose focus on launch.
Typically is gauranteed to happen if you move your mouse off the fullscreen game onto another monitor.
Seems related to #442 and #460
The text was updated successfully, but these errors were encountered: