Back to the main site

How do avoid desktop chaos after launching game in fullscreen mode?

Hello. I’m facing the trouble in my KDE Plasma. After game launched in fullscreen mode all the target desktop’s resolution changes to lower (for example actual 1920x1080 changes to 800x600), after that I have got chaos in my desktop and all shurtcuts are mixed up.

Is it possible to avoid that with fullscreen mode?

Well. Finally I’ve created a two scripts for my KDE:

Pre-launch script: plasma5_game_start.sh
#/bin/bash
cp -n ~/.config/plasma-org.kde.plasma.desktop-appletsrc ~/.config/plasma-org.kde.plasma.desktop-appletsrc.bck
qdbus org.kde.KWin /Compositor suspend

Post-exit script: plasma5_game_stop.sh
#!/bin/bash
cp ~/.config/plasma-org.kde.plasma.desktop-appletsrc.bck ~/.config/plasma-org.kde.plasma.desktop-appletsrc
killall -SIGSEGV plasmashell

(yeah, “disable desktop effects” isn’t working in my dekstop, too)