Bug 491762

Summary: Thunderbird calendar reminder dialogs have content inappropriately scaled on mixed-DPI multi-monitor setup
Product: [Plasma] kwin Reporter: Nate Graham <nate>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: kdedev
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: https://bugzilla.mozilla.org/show_bug.cgi?id=1916537
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Meeting reminder dialog with mismatches window and content sizes
Meeting reminder smaller than the dialog window frame

Description Nate Graham 2024-08-15 20:14:27 UTC
Created attachment 172658 [details]
Meeting reminder dialog with mismatches window and content sizes

Git master everything with Qt 6.7.2.

This  might be a Firefox bug, but I thought I'd report it here first since it seems like it could be caused by KWin as well.

STEPS TO REPRODUCE
1. Have two screens and scale them with different scale factors. In my case, 4K@225% and 1080p@100%.
2. Have an event on a Google Calendar with reminders/notifications attached to it.
3. Set up Thunderbird to sync with this calendar, and launch Thunderbird.
3. Move focus and the cursor to the screen with the lower scale factor.
4. Wait until a reminder triggers and Thunderbird shows a dialog for it.

OBSERVED RESULT
The reminder dialog appears on the unscaled screen, and its window size is correct, but the content within it is scaled according to the scale factor of the other screen. See attached screenshot. This is 100% reproducible for me, and has been happening for years, I just got annoyed enough to report it now. :) 

EXPECTED RESULT
The dialog's window and content match in size.

ADDITIONAL INFORMATION
If I close the dialog without resizing it and moving it, when the next calendar reminder dialog appears, if it's on the other scaled screen, then the dialog itself is enormous, approximately the pixel size of the inappropriately scaled content area of the prior dialog.
Comment 1 TraceyC 2024-08-16 21:47:26 UTC
This has been happening on my system for quite some time, 6.1.4, with Thunderbird. 
I was also able to reproduce it with master on a laptop after setting the external display to 125%, laptop at 100%On master I can't immediately reproduce but if I remember correctly, it will show up after a reboot at some point.

I cannot reproduce on master if Thunderbird is on the laptop display, but I can with it on the external display.

**6.1.4 system**
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Laptop display 3840x2400@150%
External display 3440x1440@100%

**master system**
Qt Version: 6.7.2
Laptop display 3840x2400@150%
External display 3440x1440@100%
Comment 2 TraceyC 2024-08-16 21:49:55 UTC
Created attachment 172679 [details]
Meeting reminder smaller than the dialog window frame

Laptop display 3840x2400@150%
External display 3440x1440@100% - Thunderbird and the popup on this one
Comment 3 Nate Graham 2024-08-21 17:03:58 UTC
Looks like this a known app bug, see https://bugzilla.mozilla.org/show_bug.cgi?id=1354102.
Comment 4 Nate Graham 2024-09-03 20:06:31 UTC
That one got closed; here's a new one: https://bugzilla.mozilla.org/show_bug.cgi?id=1916537