From fab2df7681f82fa494ad03b542cd7163714b42f9 Mon Sep 17 00:00:00 2001 From: Jonas Zetterberg Date: Fri, 7 Dec 2018 10:53:17 +0100 Subject: [PATCH] fadeout: Get scaled root pixbuf Bug: 14951 When session is not composited and scaled the root window needs scaled coordinates, otherwise only the top-left quarter of the root window is faded. Signed-off-by: Jonas Zetterberg --- xfce4-session/xfsm-fadeout.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xfce4-session/xfsm-fadeout.c b/xfce4-session/xfsm-fadeout.c index 6233fa2..a3f8220 100644 --- a/xfce4-session/xfsm-fadeout.c +++ b/xfce4-session/xfsm-fadeout.c @@ -80,8 +80,9 @@ xfsm_x11_fadeout_new_window (GdkDisplay *display, if (!composited) { /* create a copy of root window before showing the fadeout */ - root_pixbuf = gdk_pixbuf_get_from_window (root, 0, 0, width, height); - } + int scale = gdk_window_get_scale_factor (root); + root_pixbuf = gdk_pixbuf_get_from_window (root, 0, 0, width*scale, height*scale); + } attr.cursor = gdk_x11_cursor_get_xcursor (cursor); mask |= CWCursor; -- 2.20.0.rc2