! 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 !
Log out dialog only fadeout top-left quarter of the screen when scaled
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Jonas Zetterberg 2018-12-07 11:00:59 CET
When not composited the faded root window only fades out half the screen when the screen is scaled.
Comment 1 Jonas Zetterberg 2018-12-07 11:04:10 CET
Created attachment 8158 
Add window scaling when grabbing the root window pixbuf.
Comment 2 Jonas Zetterberg 2018-12-07 11:06:24 CET
Created attachment 8159 
Add window scaling when grabbing the root window pixbuf (try 2)
Comment 3 Jonas Zetterberg 2018-12-07 13:59:18 CET
Created attachment 8161 
Updated patch.

Updated patch that do the scaling regardless of if screen is composited or not.
Comment 4 Andre Miranda editbugs 2018-12-08 02:36:37 CET
Your patch seems to make sense, however I can't reproduce this issue.
My humble laptop's screen is only 1366x768, I tried xrandr --scale 2x2 and 0.5x0.5, with and without compositor, but in all cases the fade covers all the screen.
I'm running session from git master, but no commit since 4.13.1 seems to make much difference.
Comment 5 Jonas Zetterberg 2018-12-08 10:58:40 CET
Hi.

Sorry, I'm using master too, wrongly selected 4.13.1

I go to the xfce "Settings"->"Apperings"->"Settings"->"Window Scaling" and select x2 and that gives me the issue.

I know gnome changes this automatically if screen is high (don't know how much higher). I'm using "3840x2160" display.

I'll try to take a screen shot of the issue.
Comment 6 Jonas Zetterberg 2018-12-08 11:04:25 CET
Created attachment 8166 
Issue: quarter of screen is faded.
Comment 7 Jonas Zetterberg 2018-12-08 12:09:24 CET
I looked into xrandr scale a little more. xrandr changes the window as presented to client application to a scaled version. So the whole screen in a 0.5x0.5 mode is scaled. Setting window scaling keeps the screen at high resolution and gtk scales up images and increases font size to match. So for window scale the fonts are rendered using the high resolution scaling and only images are scaled.

So to test the issue you could use xrandr scale to 2x2 (scale up) and then Window-Scaling to 2x (scale down). That way the screen size that gtk sees is hdpi (xrandr) and then you scale the windows back to your original resolution (Window-Scaling).
Comment 8 Olivier Fourdan editbugs 2018-12-08 12:25:18 CET
This is GDK scaling affecting the reported output size... A scale 2 will report an output size the quarter of the size.

https://developer.gnome.org/gdk3/stable/GdkMonitor.html#gdk-monitor-get-geometry

> "The returned geometry is in ”application pixels”, not in ”device pixels”"
Comment 9 Olivier Fourdan editbugs 2018-12-08 12:26:58 CET
(I mean, attachment 8161  is correct, xrandr has nothing to do  with that)
Comment 10 Andre Miranda editbugs 2018-12-15 04:32:44 CET
Oh now I see, with compositor disabled and 2x scaling I can reproduce bug and indeed the patch fixes the problem.
Comment 11 Git Bot editbugs 2018-12-15 11:46:19 CET
Jonas Zetterberg referenced this bugreport in commit 28302d453f9f7407051bb4fea2a37de0d266fdad

Support scaling in logout dialog (Bug #14951)

https://git.xfce.org/xfce/xfce4-session/commit?id=28302d453f9f7407051bb4fea2a37de0d266fdad
Comment 12 Simon Steinbeiss editbugs 2018-12-15 11:46:47 CET
Thanks, pushed!

Bug #14951

Reported by:
Jonas Zetterberg
Reported on: 2018-12-07
Last modified on: 2018-12-15

People

Assignee:
Xfce Bug Triage
CC List:
4 users

Version

Version:
4.13.1

Attachments

Add window scaling when grabbing the root window pixbuf. (1.13 KB, patch)
2018-12-07 11:04 CET , Jonas Zetterberg
no flags
Add window scaling when grabbing the root window pixbuf (try 2) (1.11 KB, patch)
2018-12-07 11:06 CET , Jonas Zetterberg
no flags
Updated patch. (1.18 KB, patch)
2018-12-07 13:59 CET , Jonas Zetterberg
no flags
Issue: quarter of screen is faded. (522.18 KB, image/png)
2018-12-08 11:04 CET , Jonas Zetterberg
no flags

Additional information