[Xfce4-commits] [xfce/xfce4-session] 01/01: Support scaling in logout dialog (Bug #14951)
noreply at xfce.org
noreply at xfce.org
Sat Dec 15 11:46:15 CET 2018
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-session.
commit 28302d453f9f7407051bb4fea2a37de0d266fdad
Author: Jonas Zetterberg <jozz at jozz.se>
Date: Fri Dec 7 10:53:17 2018 +0100
Support scaling in logout dialog (Bug #14951)
When session is scaled the root window needs scaled coordinates, otherwise
only the top-left quarter of the root window is faded.
---
xfce4-session/xfsm-fadeout.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/xfce4-session/xfsm-fadeout.c b/xfce4-session/xfsm-fadeout.c
index 6233fa2..73e0aba 100644
--- a/xfce4-session/xfsm-fadeout.c
+++ b/xfce4-session/xfsm-fadeout.c
@@ -63,6 +63,7 @@ xfsm_x11_fadeout_new_window (GdkDisplay *display,
gulong mask = 0;
gulong opacity;
gboolean composited;
+ gint scale;
gdk_error_trap_push ();
@@ -77,6 +78,10 @@ xfsm_x11_fadeout_new_window (GdkDisplay *display,
cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
+ scale = gdk_window_get_scale_factor (root);
+ width *= scale;
+ height *= scale;
+
if (!composited)
{
/* create a copy of root window before showing the fadeout */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list