dlangide icon indicating copy to clipboard operation
dlangide copied to clipboard

KDE Kwin compositing gets disabled when opening window

Open LinAGKar opened this issue 7 years ago • 7 comments

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

LinAGKar avatar May 30 '17 20:05 LinAGKar

It's apparently caused by _NET_WM_BYPASS_COMPOSITOR(CARDINAL) = 1, so it's caused by DLangIDE.

LinAGKar avatar Jul 25 '17 11:07 LinAGKar

Do other SDL2 apps work correctly?

buggins avatar Aug 09 '17 06:08 buggins

Most SDL2 applications are games, which should disable compositing. I don't know of any other non-game SDL2 application.

LinAGKar avatar Aug 09 '17 07:08 LinAGKar

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

buggins avatar Aug 09 '17 12:08 buggins

dub build --config=x11 does keep it from happening. dub build --config=minimal does not.

LinAGKar avatar Aug 10 '17 08:08 LinAGKar

Probably, it's some libSDL2 issue.

buggins avatar Aug 10 '17 10:08 buggins

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.

MggMuggins avatar Nov 09 '17 23:11 MggMuggins