Skip to content
Snippets Groups Projects
Commit dbce8128 authored by Keith Packard's avatar Keith Packard
Browse files

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: default avatarKeith Packard <keithp@keithp.com>
parent 769e6f43
No related branches found
No related tags found
No related merge requests found
Pipeline #3570 failed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment