Bug 414924 - Distorted window on Hidpi Screen (Dual Screen Setup)
Summary: Distorted window on Hidpi Screen (Dual Screen Setup)
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: 5.12.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2019-12-07 13:34 UTC by Stephan Johach
Modified: 2020-10-21 08:30 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
kmail 2 distorted main window on hidpi screen (656.70 KB, image/png)
2019-12-07 13:34 UTC, Stephan Johach
Details
kmail 2 on the secondary screen with lower resolution (532.48 KB, image/png)
2019-12-07 13:35 UTC, Stephan Johach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Johach 2019-12-07 13:34:43 UTC
Created attachment 124358 [details]
kmail 2 distorted main window on hidpi screen

SUMMARY

This is a multi-monitor setup

Primary Monitor: Eizo EV2785 3840x2160
Secondary Montor: Eizo S1910 1280x1024

Scaling factor is set to: 1.5

STEPS TO REPRODUCE
1.  Start KMail on the primary screen, in fullscreen the window 
is distorted (see screenshot kmail2_distorted_hidpi.png), resizing leads
to more distortion.
2.  Move the window to the secondary screen and double click to maximize it.
The distortion goes away (see kmail2_secondary_screen).
3. Moving it back to the primary screen leaves the layout exactly as on the
secondary screen, only scaled to the higher resolution (smaller).
4. Resizing or maximizing the window again (on the primary display) gets the
distortion back. The Kmail window seems to be cut off on the left and the
date part of the message list is repeated on the right.

OBSERVED RESULT

Distorted window on the hidpi screen. Undistorted window on the secondary display.

EXPECTED RESULT

Undistorted window on both screens

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: gentoo
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.64
Qt Version: 5.12.5

ADDITIONAL INFORMATION
X Server
Radeon RX 560 Series (POLARIS11, DRM 3.33.0, 5.3.11-gentoo, LLVM 8.0.1)
OpenGL version: 4.5 (Compatibility Profile) Mesa 19.1.8
Kernel module: amdgpu
Comment 1 Stephan Johach 2019-12-07 13:35:31 UTC
Created attachment 124359 [details]
kmail 2 on the secondary screen with lower resolution
Comment 2 Stephan Johach 2019-12-15 13:40:43 UTC
Probably of interest the output of xrandr in my setup:

xrandr -q:

Screen 0: minimum 320 x 200, current 5120 x 2160, maximum 16384 x 16384
DisplayPort-0 connected primary 3840x2160+1280+0 (normal left inverted right x axis y axis) 597mm x 336mm
   3840x2160     60.00*+  29.98  
   2560x1440     59.95  
   1920x1200     59.88  
   1920x1080     60.00    59.94    30.00    29.97  
   1600x1200     60.00  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     60.02  
   1440x900      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94  
   1024x768      60.00  
   800x600       60.32  
   720x480       60.00    59.94  
   640x480       60.00    59.94  
   720x400       70.08  
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DVI-D-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 376mm x 301mm
   1280x1024     60.02*+
   1280x800      60.02  
   1280x720      60.02  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
   720x400       70.08
Comment 3 Stephan Johach 2020-03-01 15:37:58 UTC
Seems to be the same problem: https://bugs.kde.org/show_bug.cgi?id=418122
Comment 4 Stephan Johach 2020-05-05 12:28:54 UTC
My setup seems very similar to what is described here https://techbase.kde.org/Development/Tutorials/Graphics/HiDPI#Dual-screen_setup

No patch/workaround for kmail?
Comment 5 Stephan Johach 2020-10-21 08:30:27 UTC
The bug seems to be fixed now. Not sure what exactly fixed it. I suspect the qt update to 5.15.

Current software is.

Operating System: Gentoo Linux
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.1
Kernel Version: 5.8.14-gentoo
OS Type: 64-bit
Processors: 32 × AMD Ryzen Threadripper 1950X 16-Core Processor
Memory: 31,3 GiB of RAM
Graphics Processor: Radeon RX 560 Series