https://bugs.winehq.org/show_bug.cgi?id=50981
Bug ID: 50981 Summary: Virtual Desktop not respecting certain resolutions Product: Wine Version: 6.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: lemonzest@gmail.com Distribution: ---
Created attachment 69810 --> https://bugs.winehq.org/attachment.cgi?id=69810 1920x1080
Hi
I have noticed for a few months now that virtual desktop is not scaling correctly in certain modes.
I have enabled the desktop shell taskbar to check this. Some common resolutions like 1280x720,1366x768,1600x900,1680x1050,3200x1800 are correct as expected.
But 1920x1080 and 2560x1440 do not show the taskbar as they are cropped and this is also in games as they crop the bottom rows off, this sometimes means it crops off item bars.
To show the taskbar in 1920x1080 I have to reduce the vertical to 1050 lines and in 2560x1440 I also have to reduce to 1050 lines, seems 1050 is some magic number??
If I run a game at a 2560x1440 resolution the virtual desktop remains at a 1920x1080'ish size but does not expand to encompass the entire game.
I am running on a 4K display and usually like to have games running in virtual desktop so I can keep any eye on other things like chat.
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #1 from Lemonzest lemonzest@gmail.com --- Created attachment 69811 --> https://bugs.winehq.org/attachment.cgi?id=69811 1366x768
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #2 from Lemonzest lemonzest@gmail.com --- Created attachment 69812 --> https://bugs.winehq.org/attachment.cgi?id=69812 2560x1440
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #3 from Lemonzest lemonzest@gmail.com --- Sorry I had forgotten, This is on Fedora 33/34B with both Staging, Devel, Stable 6.x series Wine in the Cinnamon and Gnome Shell environments.
https://bugs.winehq.org/show_bug.cgi?id=50981
Lemonzest lemonzest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |lemonzest@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=50981
Lemonzest lemonzest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |winex11.drv
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #4 from Lemonzest lemonzest@gmail.com --- Any news one this? Thanks. Still affected in Wine-Devel 6.9
https://bugs.winehq.org/show_bug.cgi?id=50981
Lemonzest lemonzest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|winex11.drv |-unknown Severity|normal |major
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #5 from Lemonzest lemonzest@gmail.com --- Maybe I should include some more info for clarity, to enable the taskbar first run winecfg and enable a virtual desktop of 1600x900 for example then apply and ok to exit, then save this snippet in a file called EnableShell.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops\Default] "EnableShell"=dword:00000001
then run wine regedit EnableShell.reg and then run winecfg again and you will see the taskbar as it should be, but when I enable virtual desktop sizes 1920x1080 or 2560x1440 it is as I described earlier, no taskbar indicating the view is cut off and this manifests in games too with cut off item bars.
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #6 from Lemonzest lemonzest@gmail.com --- Created attachment 70136 --> https://bugs.winehq.org/attachment.cgi?id=70136 Correct 1600x900
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #7 from Lemonzest lemonzest@gmail.com --- Created attachment 70137 --> https://bugs.winehq.org/attachment.cgi?id=70137 Cutoff 1920x1080
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #8 from Lemonzest lemonzest@gmail.com --- Created attachment 70138 --> https://bugs.winehq.org/attachment.cgi?id=70138 Correct 1080p
Screenshot is dated
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #9 from Lemonzest lemonzest@gmail.com --- Created attachment 70139 --> https://bugs.winehq.org/attachment.cgi?id=70139 Correct 1440p
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #10 from Lemonzest lemonzest@gmail.com --- Posted two correct game images for 1080p and 1440p, they include the window title bar height, where's the incorrect ones are cutting out the bottom rows
Seems to have been around 5.20/5.22 time frame.
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #11 from Lemonzest lemonzest@gmail.com --- Screenshots were taken with alt+prntscn correct size for the 1080p image should be 1104 pixel height correct height for the 900p screenshot is 928 pixels, and correct height for the 1440p screenshot is 1478 pixels height.
These heights are including the game view + window title bar, seems the window error is the viewport is still the 1080p height but is pushing down the image with the title bar.
https://bugs.winehq.org/show_bug.cgi?id=50981
--- Comment #12 from Lemonzest lemonzest@gmail.com --- I think I figured it out, it's the window manager not doing what it's told, so I tried the following the other day, but had forgotten to update the bug.
openbox: Works blackbox: Works Mutter: (GNOME 40) Works pekwm: Works Metacity: (Gnome-Flashback) Failed Muffin: (Cinnamon) Failed
The latter two DM were the ones I was using.
The window managers that work can open the correct window sizes that are asked for in the virtual desktop settings in winecfg, so a 2560x1440 window on a 3840x2160 screen, the ones that fail do not open the correct size, they open a 1920x1080 window and crop everything else. This is probably not noticed much as most people with 4K screens have some kind of scaling applied and not a raw 100% screen like myself.
I hope this helps