Bug 418122 - Kontact UI in dual-monitor setting
Summary: Kontact UI in dual-monitor setting
Status: REPORTED
Alias: None
Product: kontact
Classification: Applications
Component: mail (show other bugs)
Version: 5.11.3
Platform: Fedora RPMs Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-24 08:07 UTC by aleskandro
Modified: 2020-05-05 12:27 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example of Kontact Calendar in two hidpi screens configuration (162.44 KB, image/png)
2020-02-24 08:07 UTC, aleskandro
Details
What my Kontact window looks like (358.07 KB, image/png)
2020-03-07 18:32 UTC, peter.snauwaert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aleskandro 2020-02-24 08:07:38 UTC
Created attachment 126366 [details]
Example of Kontact Calendar in two hidpi screens configuration

SUMMARY
In my configuration, a fresh installation on Fedora 31, Kontact works well while in a single hidpi (3200x1800, scale factor 2) monitor setup.

If I attach a second 4k monitor and I try to use Kontact UI in this second screen (moving it from the first screen or running it directly in that screen), widgets are not anymore in place: kontact become unusable, if you move mouse arount its window you can see how actual position of the cursor (the one you see) can trigger buttons and other items in a "different virtual position". Despite the cursor layout is absolutely not sorted. I attach a screenshot
Sometimes KMail shows not bad but for sure the WebView to preview mail content is black and doesn't refresh/show.

STEPS TO REPRODUCE
1. Configure a second 4k screen (not mirroring) 
2. Run kontact
3. Move its window to the second screen or run kontact directly in the second screen


SOFTWARE/OS VERSIONS
Windows: No 
macOS: No
Linux/KDE Plasma: Fedora 31 (Linux-5.4.17-200.fc31.x86_64) - Intel VGA
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.66.0
Qt Version: 5.13.2
Comment 1 aleskandro 2020-02-24 08:09:43 UTC
PS. If you move kontact back to the primary monitor it will show up good.
Comment 2 peter.snauwaert 2020-02-28 15:01:07 UTC
I have the same issue. However, it is only from time to time that moving Kontact back to my laptop LCD screen restores the window so it becomes usable. Most of the time the Kontact window is all garbled. Resizing also doesn't redraw the window correctly, it's all over the place really.

Below you find the machine info:
Operating System: openSUSE Tumbleweed 20200226
KDE Plasma Version: 5.18.1
KDE Frameworks Version: 5.67.0
Qt Version: 5.14.1
Kernel Version: 5.5.5-1-default
OS Type: 64-bit
Processors: 12 × Intel® Xeon® E-2276M CPU @ 2.80GHz
Memory: 125,5 GiB of RAM
Nvidia driver version: 440.59
Comment 3 Stephan Johach 2020-03-01 15:37:16 UTC
I think my problem is the same with 1 HiDpi and 1 non-HiDpi Screen attached. See

https://bugs.kde.org/show_bug.cgi?id=414924
Comment 4 peter.snauwaert 2020-03-07 18:32:06 UTC
Created attachment 126658 [details]
What my Kontact window looks like

This is what my Kontact window looks like when a second display is attached.
Comment 5 aleskandro 2020-03-15 10:23:07 UTC
This bug is not present on Ubuntu Eoan and, precisely, on the following setup

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KUbuntu Eoan (Linux-5.3.0-40-generic.x86_64) - Intel VGA

KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4
Comment 6 peter.snauwaert 2020-03-15 11:26:56 UTC
The problem seems broader than kmail/kontact I feel. The other day when I opened an upload dialog from Firefox to select a file it looked ok until I moved the cursor. Same sort of garbled window and no possibility to work.

It is becoming quite cumbersome to have to unplug my display to be able to read mail. Is there a way to know if this has actually been picked up already?
Comment 7 Stephan Johach 2020-05-05 12:27:54 UTC
I would guess KMail is also one of the applications suffering from this Qt bug:

https://techbase.kde.org/Development/Tutorials/Graphics/HiDPI#Dual-screen_setup