Bug 438002 - Wine game (Resident Evil 5) full screen mode with lower resolution not working on Wayland
Summary: Wine game (Resident Evil 5) full screen mode with lower resolution not workin...
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.21.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-02 15:57 UTC by smit
Modified: 2021-06-09 17:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (1.38 MB, image/png)
2021-06-02 15:57 UTC, smit
Details

Note You need to log in before you can comment on or make changes to this bug.
Description smit 2021-06-02 15:57:48 UTC
Created attachment 138950 [details]
screenshot

SUMMARY

My laptop's screen is 1920x1080. While playing this game, I often reduce the in-game resolution to 1368x768. Everything works fine on X11 (except It also sets my screen resolution which I have to manually reset but it also happens in xfce )
But On Wayland, setting resolution to lower than screen's results in game window sticking to top left corner without entering fullscreen mode. Also when pressed Alt+F3 -> more actions, Fullscreen option is disabled.

STEPS TO REPRODUCE
1. start kde wayland
2. start Resident Evil 5
3. set resolution to lower than current screen resolution 

OBSERVED RESULT

Game sticking at top-left corner in small size


EXPECTED RESULT

same as KDE on X11, game running in fullscreen


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2+kde+r196-1

ADDITIONAL INFORMATION

I tested Xonotic by reducing its in-game resolution and it works as expected. CSGO and TF2 were also working fine in lower resolution but I don't have them installed now to test. It seems wine is doing something weird or Resident Evil 5 in particular. I don't have other wine games to test
Comment 1 Nate Graham 2021-06-08 22:23:39 UTC
Does it still happen in Plasma 5.22? A lot of work was done on this kind of thing recently.
Comment 2 smit 2021-06-09 16:52:59 UTC
(In reply to Nate Graham from comment #1)
> Does it still happen in Plasma 5.22? A lot of work was done on this kind of
> thing recently.

Yes. Just tested. still happens on 5.22.0
Comment 3 smit 2021-06-09 17:05:21 UTC
Hi, just tested it on sway and this issue also happens on their just in different form. game is in center of screen and is completely unplayable (it at least playable in kde)

So I think this is issue with Xwayland or Wine. I'll report it to wine
Comment 4 Nate Graham 2021-06-09 17:09:59 UTC
Cool.