Bug 1391627

Summary: Wrong scaling on secondary monitor with lower dpi
Product: [Fedora] Fedora Reporter: mattias.eriksson
Component: waylandAssignee: Adam Jackson <ajax>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: ajax, inaky.perez-gonzalez, jan.public, redhat
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:41:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
capture with chrome in the lower display
none
capture with chrome in the upper display none

Description mattias.eriksson 2016-11-03 16:05:07 UTC
Description of problem:
I have a macbook pro with retina display. When I attach a monitor to that with a lower dpi xwayland windows are still scaled as if they are displayed on the hidpi screen. ie, they are huge. 


Version-Release number of selected component (if applicable):
Fedora 25
xorg-x11-server-Xwayland-1.19.0-0.3.20161026.fc25.x86_64

Steps to Reproduce:
1. Attach a regular dpi screen to a hidpi laptop. 
2. Open Firefox. 
3. Move the window over to the regular dpi screen. 

Actual results:
Windows are huge on the regular dpi screen

Expected results:
Windows would be displayed at regular size

Comment 1 Inaky Perez-Gonzalez 2016-11-23 04:48:25 UTC
I have a very similar issue.

Fresh install
xorg-x11-server-Xwayland-1.19.0-0.8.rc2.fc25.x86_64

top display is a left-rotated external Dell 1920x1200 16:10
bottom display: builtin Lenovo X1 Carbon 2560x1440 (16:9)

The attached screenshots (under and over) show how the screens look when the chrome window is in the laptop display (under) and the same window moved to the Dell display. The capture has been scaled to the size of the screens (the laptop screen being as physically wide as the dell is when rotated).

Comment 2 Inaky Perez-Gonzalez 2016-11-23 04:52:39 UTC
Created attachment 1222979 [details]
capture with chrome in the lower display

Comment 3 Inaky Perez-Gonzalez 2016-11-23 04:53:14 UTC
Created attachment 1222980 [details]
capture with chrome in the upper display

Comment 4 Inaky Perez-Gonzalez 2016-11-23 04:57:02 UTC
Things only work as expected (ie: the physical window size is the same when moving the window from display to display) when I set the laptop's display to 1368x768 (16:9) and keep the left-rotated dell display at 1920x1200 (16:10) [so 1200x1920].

I guess the with of both then (1200 vs 1368) that it looks almost the same. It is like the same DPI calculation is being used for both displays for X apps (vs wayland apps, that are scaled properly in either case).

Comment 5 Fedora End Of Life 2017-11-16 19:48:53 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 6 Fedora End Of Life 2017-12-12 10:41:38 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.