Describe the bug: On Linux with KDE Plasma, launching the game causes the desktop environment to act weird. Closing the game makes it go away.
Screenshots or videos showing encountered issue:
For example, compositing seems to be one of the things that break when the game is running.
While it is not running: 
While it is: 
Notice that the background blur is gone, and there is also a weird gray border around windows and panels.
osu!lazer version: 2019.1106.0
Since KDE uses wayland now, I'm guessing this might be an issue with how compositing works with xwayland, as the osu!lazer window will attempt to create an SDL Xwindow surface by default.
Try setting the environment variable SDL_VIDEODRIVER to wayland before running:
$ export SDL_VIDEODRIVER=wayland
$ dotnet run --project osu.Desktop
That seems to have fixed the problem - and also a lot of other things like tearing and such. I
found that it's nice to change the launch command for the game to something like SDL_VIDEODRIVER=wayland /usr/bin/osu-lazer %F and it will work fine.
Is it possible to change how osu!lazer behaves so that it doesn't cause this problem without having to set SDL_VIDEODRIVER to wayland before every launch?
Default support for wayland has been raised before in this issue https://github.com/ppy/osu/issues/5198
This may not be fixed soon though, as it would require changes to the osuTk graphics library that we will eventually move away from in favour of veldrid.
Since the issue linked by @jai-x above looks to be pretty much the same thing I suppose I'll close as duplicate. But yes, this will be also closely tied to ppy/osu-framework#2448, since other video backends might also need to autodetect and properly handle wayland.
Most helpful comment
Since KDE uses wayland now, I'm guessing this might be an issue with how compositing works with xwayland, as the osu!lazer window will attempt to create an SDL Xwindow surface by default.
Try setting the environment variable
SDL_VIDEODRIVERtowaylandbefore running: