dlangide
dlangide copied to clipboard
KDE Kwin compositing gets disabled when opening window
When opening any window in DLangIDE (including the main window), the Kwin compositing/desktop effects gets disabled, and when quitting the IDE they get reenabled. This is only supposed to happen when opening fullscreen applications.
Also posted here: https://bugs.kde.org/show_bug.cgi?id=380368
It's apparently caused by _NET_WM_BYPASS_COMPOSITOR(CARDINAL) = 1
, so it's caused by DLangIDE.
Do other SDL2 apps work correctly?
Most SDL2 applications are games, which should disable compositing. I don't know of any other non-game SDL2 application.
Can you try building minimal configuration? It doesn't use OpenGL. Probably, compositing is disabled for OpenGL windows...
dub build --config=minimal
Other option: try x11 configuration (added in dlangide 0.7.40)
dub build --config=x11
dub build --config=x11
does keep it from happening. dub build --config=minimal
does not.
Probably, it's some libSDL2 issue.
It's an SDL issue, my guess is that dlangui is somehow requesting that compositing be disabled (usually used for games to get better performance). If you go into System Settings > Display and Moniter > Compositor You can uncheck "Allow applications to block compositing", which fixes it for me. You can also achieve the same thing with Kwin window rules (coolest thing ever, if you've never played with them). I've got it disabled systemwide and allow it for 0AD, since I do more with DlangUI than gaming. Depends on your use case.