summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-08-26 14:33:11 -0700
committerKeith Packard <keithp@keithp.com>2018-08-26 19:12:33 -0700
commitdbce812847a8e2f0d40aef1ce92cc28887bb4b21 (patch)
tree863ec8628ab2c6993fba542708e116fd9cd5c155
parent769e6f43cc7b6269029df6ebd770863df3df29f5 (diff)
present: Report owner window size in present configure notify eventswindow-scaling
This ensures that present clients generate output suitable for the size of the presented area. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--present/present_screen.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/present/present_screen.c b/present/present_screen.c
index c7e37c5fd..cdc0072f5 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)