! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfsettingsd/displays: support xrandr display scaling
Status:
RESOLVED: FIXED
Product:
Xfce4-settings
Component:
Xfsettingsd

Comments

Description Jason Zaman 2018-04-20 05:21:47 CEST
Equivalent to xrandr --scale to scale the entire display area
    
The scale values are stored in xfconf under /Default/<name>/Scale/{X,Y}
similar to Position.
    
A value of 1.0 is the default with no scaling. Values below 1 will
"zoom in", above 1 will "zoom out". Eg a 1080p monitor and scaling set
to 2x2 will have the same realestate as a 4k panel.
Comment 1 Jason Zaman 2018-04-20 05:26:12 CEST
Created attachment 7672 
0001-xfsettingsd-displays-support-xrandr-display-scaling.patch

This works for me for several days of testing.

It doesnt store the whole transform in xfconf, only the scaling X and Y and just replaces any previous transform if one is set. It also sets the filter to bilinear for anythign that isnt 1x1. maybe we'd want this to be settable instead?

I havent made a UI for this yet, im not that good at GTK but this back end part works fine so far.
Comment 2 Jason Zaman 2018-05-03 09:23:10 CEST
https://bugs.freedesktop.org/show_bug.cgi?id=39949
https://cgit.freedesktop.org/xorg/xserver/commit/?id=d7297b00444b0e2cd936fbfb08206a575ab8c29d
this upstream bug is fixed now and will be in xorg-server-1.20 so the mouse wont be trapped anymore when scaling

Bug #14346

Reported by:
Jason Zaman
Reported on: 2018-04-20
Last modified on: 2018-06-17

People

Assignee:
Nick Schermer
CC List:
4 users

Version

Version:
unspecified

Attachments

Additional information