After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 786919 - Cannot have fractionally scaled monitor at the top/left of another monitor
Cannot have fractionally scaled monitor at the top/left of another monitor
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Display
3.25.x
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-08-28 15:04 UTC by Benjamin Berg
Modified: 2017-08-28 16:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
display: Round scaled logical monitor sizes the same way mutter does (1.48 KB, patch)
2017-08-28 15:53 UTC, Rui Matos
committed Details | Review

Description Benjamin Berg 2017-08-28 15:04:43 UTC
I am unable to position a fractionally scaled monitor to the top or left of a non-scaled one. In this particular case I have two monitors with 2560x1440px (internal laptop screen and connected using HDMI). The internal laptop screen should be scaled to around 150% for the sizes to be similar.
The dialog allows me to select 100%, 150%, 176%, 200% and 225%. 100% and 200% work as expected but if I select any other size I cannot apply. g-c-c logs the following error message:

display-cc-panel-WARNING **: Config not applicable: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Logical monitors not adjacent
Comment 1 Rui Matos 2017-08-28 15:53:39 UTC
Created attachment 358607 [details] [review]
display: Round scaled logical monitor sizes the same way mutter does

Mutter uses round() while we are just truncating via the implicit
double -> int type conversion, meaning that mutter will reject some
configurations that should work. Fix that by using the same rounding
as mutter.
Comment 2 Rui Matos 2017-08-28 16:59:46 UTC
Attachment 358607 [details] pushed as a4a243c - display: Round scaled logical monitor sizes the same way mutter does