SUMMARY There are a couple of different problems here. I have really only noticed this with games but any application with resolution options like games have will suffer similar problems. - X11 Games will always show the maximum resolution of any display regardless of which monitor is chosen for the game. The game will know which monitor it is opened on, but it will always list the "maximum" resolution out of all of my monitors, even if that specific monitor doesn't have the resolution (see second point for what I mean by "maximum"). e.g. on my 1080p displays it still shows running at 1440p to be available. The game knows it is on a 1080p display as it shows a different selected monitor, but it will still let me run the game at 1440p. - X11 Games on a scaled display list a higher resolution than they did on Plasma 5.25, but they still do not list the native resolution as the maximum. On my 4k display with 150% scaling, previously 1440p was the maximum shown resolution. However now oddly the maximum is "2880x1620". I have verified that the display should in fact be 3840x2160, Display settings even list this. I group these two issues together as they are both related to X11 application resolutions on multi-monitor mixed-DPI displays. I hope this is alright. STEPS TO REPRODUCE 1. Open a game or any application that lets you view/select resolutions and monitors to run the application on. A game is probably the most straightforward. 2. Flick through the game's resolution options, it will show higher than what is currently available on the current display 3. Game will also not show the native resolution of the current display, though it will likely get *fairly* close. In my case with a 4k@150% scaling display, it shows 2880x1620. OBSERVED RESULT Games show higher resolution than what is available on the display it is currently on. It shows the maximum seen resolution out of all available displays. Games also do not show a display's native resolution, though it gets closer than 5.25 did which simply capped the resolution at the display's scaled resolution. EXPECTED RESULT Games should only show the maximum resolution available on the current display it is on. It should also show the true native resolution of the current display that it is on, such as allowing a game to run at native 4k on a scaled 4k display. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION Some tools such as Gamescope could get around the issues posed, but Gamescope has a few limitations including a significant performance overhead when you have several displays. It also isn't perfect in other respects. There may be other ways to set/force an application's resolution, but Plasma should be able to take care of this automatically for the best user experience.
Oops, I forgot to fill out my system info for this one: SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.18.9-zen1-1-zen (64bit) KDE Plasma Version: 5.25.90 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6
*** Bug 460925 has been marked as a duplicate of this bug. ***
The cause of this is that Xwayland completely ignores the modes we send; it takes the logical output size it gets from xdg output and generates its own fake mode list. In a setup with different scales on different outputs, that logical output size is only correct on the output with the highest scale. I'm not sure this can be fixed
I thought about it a bit and there doesn't seem to be any way to fix this in KWin. There is however an existing MR that would fix it in Xwayland: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/861
This MR, from my understanding of reading, would fix my biggest problem with Wayland right now - That fullscreen games cannot render at full resolution. It also sounds like it would fix the incorrect list of resolutions in fullscreen showing up on other displays, since it would only get the resolution for that display I think? I'm not at all familiar with these components but that change or a change like it would be, in my opinion, a game-changer for gaming on Wayland (which on AMD + Plasma Wayland offers noticeable performance gains). Being able to play games on scaled displays on Wayland at that displays full resolution is the main annoyance I have with Wayland currently and the only real caveat I have when recommending Plasma Wayland to people. Thanks for the research on this, I understand and appreciate it can't be fixed on the KWin side but you went out of your way to find out if there has been any progress upstream on this and there is a draft MR, so thank you for bringing more attention to that. It gives me a little bit of hope that in future this will be resolved :D