xwayland: Expand the RANDR screen size limits

There's not really a good way to query this from the wayland server, so
just set the maximum to the X11 protocol limits. While we're at it,
lower the minimum screen size to something implausibly small too, just
in case.

Fixes: xorg/xserver#850
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
Adam Jackson 2019-07-15 11:38:44 -04:00
parent fe4cd0e7f5
commit d0850241c6

View File

@ -476,7 +476,7 @@ xwl_screen_init_output(struct xwl_screen *xwl_screen)
if (!RRScreenInit(xwl_screen->screen)) if (!RRScreenInit(xwl_screen->screen))
return FALSE; return FALSE;
RRScreenSetSizeRange(xwl_screen->screen, 320, 200, 8192, 8192); RRScreenSetSizeRange(xwl_screen->screen, 16, 16, 32767, 32767);
rp = rrGetScrPriv(xwl_screen->screen); rp = rrGetScrPriv(xwl_screen->screen);
rp->rrGetInfo = xwl_randr_get_info; rp->rrGetInfo = xwl_randr_get_info;