From dbce812847a8e2f0d40aef1ce92cc28887bb4b21 Mon Sep 17 00:00:00 2001 From: Keith Packard <keithp@keithp.com> Date: Sun, 26 Aug 2018 14:33:11 -0700 Subject: [PATCH] present: Report owner window size in present configure notify events This ensures that present clients generate output suitable for the size of the presented area. Signed-off-by: Keith Packard <keithp@keithp.com> --- present/present_screen.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/present/present_screen.c b/present/present_screen.c index c7e37c5fdf..cdc0072f5a 100644 --- a/present/present_screen.c +++ b/present/present_screen.c @@ -178,8 +178,14 @@ present_config_notify(WindowPtr window, int ret; ScreenPtr screen = window->drawable.pScreen; present_screen_priv_ptr screen_priv = present_screen_priv(screen); + int pw = w, ph = h; - present_send_config_notify(window, x, y, w, h, bw, sibling); + if (wOwnerSized(window)) { + pw = wOwnerWidth(window); + ph = wOwnerHeight(window); + } + + present_send_config_notify(window, x, y, pw, ph, bw, sibling); unwrap(screen_priv, screen, ConfigNotify); if (screen->ConfigNotify) -- GitLab