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

[GNU/Linux + Wayland] vkBasalt causes Wayland compositors stall when fullscreen windows are closed with ALT+F4 #234

Open
vanfanel opened this issue Feb 13, 2024 · 3 comments

Comments

@vanfanel
Copy link

vanfanel commented Feb 13, 2024

Hello there,

Closing any Wayland fullscreen program (by closing it's window via ALT+F4 or similar key combination) with vkBasalt effects running makes the compositors choke: the same last two desktop frames are showed in an infinite loop, and keyboard input doesn't work until the wayland compositor is re-started.
Quitting via normal menu options work.

Using killall -s QUIT or killall -s KILL, both kill the programs with no problems (no compositor choking on quit), so only closing a fullscreen window seems to be causing the problem.

It only happens when the program is doing screen updates: quitting during an static screen, there's no problem at all.

I am currently using a simple stacking Wayland compositor called labwc, which is wlroots-based, but I have seen the same on other wl-roots based compositors like cage.
It also happens on Weston, the reference Wayland compositor (it's ALT+K on Weston to kill the topmost window).

@Rabcor
Copy link

Rabcor commented Feb 23, 2024

What ALT+F4 does depends on the compositor when you're on wayland, on some of them it doesn't even do anything at all by default, it's probably SIGTERM though, but it could be SIGHUP or SIGKILL. Either way, if it causes wlroots compositors to stall, it points to an issue in wlroots (it's not supposed to stall)whether or not vkbasalt has an issue.

@vanfanel
Copy link
Author

vanfanel commented Feb 23, 2024

Thing is, the stall only happens with Intel graphics, doesn't seem to happen with VC4 Raspberry Pi), and using SIGKILL seems to avoid it. Puzzling indeed.

@Rabcor
Copy link

Rabcor commented Feb 24, 2024

Well if you want a temporary workaround, just rebind your alt+f4 to do sigkill or sigquit instead of sigterm.

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

No branches or pull requests

2 participants