From 0a8cf8b0bc6aae1bbb0e7bd9ac6aa826a587dc0d 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xfce4-session/xfsm-fadeout.c b/xfce4-session/xfsm-fadeout.c index 6233fa2..9dc0688 100644 --- a/xfce4-session/xfsm-fadeout.c +++ b/xfce4-session/xfsm-fadeout.c @@ -80,7 +80,8 @@ 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); -- 2.20.0.rc2