Skip to content
Snippets Groups Projects
Commit 5cc0319c authored by Olivier Fourdan's avatar Olivier Fourdan :tools:
Browse files

xwayland: update_screen_size() takes a screen argument


update_screen_size() takes an xwl_output argument, mostly for historical
reasons, whereas it actually applies to a screen (as its name implies).

Reshuffle the code to take an xwl_screen instead, in preparation for
the geometry mode in Xwayland - No functional change.

Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
parent eae3c06c
No related branches found
No related tags found
No related merge requests found
......@@ -180,10 +180,8 @@ update_backing_pixmaps(struct xwl_screen *xwl_screen, int width, int height)
}
static void
update_screen_size(struct xwl_output *xwl_output, int width, int height)
update_screen_size(struct xwl_screen *xwl_screen, int width, int height)
{
struct xwl_screen *xwl_screen = xwl_output->xwl_screen;
if (xwl_screen->root_clip_mode == ROOT_CLIP_FULL)
SetRootClip(xwl_screen->screen, ROOT_CLIP_NONE);
......@@ -645,7 +643,7 @@ apply_output_change(struct xwl_output *xwl_output)
--xwl_screen->expecting_event;
}
update_screen_size(xwl_output, width, height);
update_screen_size(xwl_screen, width, height);
}
static void
......@@ -837,7 +835,7 @@ xwl_output_remove(struct xwl_output *xwl_output)
xorg_list_for_each_entry(it, &xwl_screen->output_list, link)
output_get_new_size(it, &width, &height);
update_screen_size(xwl_output, width, height);
update_screen_size(xwl_screen, width, height);
RRCrtcDestroy(xwl_output->randr_crtc);
RROutputDestroy(xwl_output->randr_output);
......
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