Commit 216bdbc7 authored by Jonas Ådahl's avatar Jonas Ådahl Committed by Adam Jackson

xwayland: Update actual screen and root window size on output hot plug

When a new output is hot-plugged we need to not only update our internal
screen dimensions, but also the dix screen dimensions, screenInfo
dimensions and the root window dimensions. Jonas Ådahl's avatarJonas Ådahl <>
Reviewed-by: Daniel Stone's avatarDaniel Stone <>
parent 211d4c2d
......@@ -156,9 +156,22 @@ output_handle_done(void *data, struct wl_output *wl_output)
if (xwl_screen->screen->root)
SetRootClip(xwl_screen->screen, FALSE);
xwl_screen->width = width;
xwl_screen->height = height;
xwl_screen->screen->width = width;
xwl_screen->screen->height = height;
if (xwl_screen->screen->root) {
xwl_screen->screen->root->drawable.width = width;
xwl_screen->screen->root->drawable.height = height;
SetRootClip(xwl_screen->screen, TRUE);
static void
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment