I play Age of empires 2 with wine. It's an old game and it changes the resolution of the screen. Until 3 months ago it worked fine. Now half the screen becomes black and half of the image goes out of the screen. Reproducible: Always Steps to Reproduce: 1. Play age of empires 2
Created attachment 99682 [details] Photo of the problem
(I doubt this is a kwin bug at all) check "xrandr -q" while the game is running ("sleep 30; xrandr -q", start the game and wati > 30 seconds ;-) Does the game run via steam?
The game doesn't run with steam. Also, sometimes it works, but pressing F12 to open yakuake will reset the resolution (before it used to remain the same resolution), and after giving the focus again to the window, it will be half out of the screen, but on the left rather than on the top. Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767 LVDS1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 344mm x 193mm 1366x768 60.04 + 1360x768 59.80 59.96 1280x720 60.00 1024x768 60.00* 1024x576 60.00 960x540 60.00 800x600 60.32 56.25 864x486 60.00 640x480 59.94 720x405 60.00 680x384 60.00 640x360 60.00 DP1 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) VGA1 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis)
The resolution is totally fucked up. You've a 1366x768 screen, run it at 1024x768 (likely because that's the games resolution) but the root window (ie. the workspace viewport) is still 1366x768 If the game doesn't grab the mouse, you should be able to shift the viewport by moving the mouse to the screen edges. Try running xrandr --output LVDS1 --mode 1024x768 aoe2.sh # ie. the game, ensure it doesn't fork so the next line isn't reached before you quit xrandr --output LVDS1 --auto There's a chance that this is caused by the kscreen daemon ("kcmshell5 kded", deactivate it in doubt) but most likely, the game (wine?) simply fails to set the resolution (probably because it desires 4:3 but you're on 16:9) It's not kwin related, though.
Did not solve the issue. I can assure you that I have been playing this game for years with wine, and I started having problems when the new plasma and qt arrived on debian.
What's the "xrandr -q" output under that altered condition? I can only assure that kwin doesn't control the screen resolution :-P
This looks similar to bug 367770 Can you try to suspend the compositor (Alt+shift+f12) before starting the game?
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
To be honest it stopped working in wine… so I have no idea.
Unable to reproduce the issue. No point in keeping this open.