xwayland: Add support for -force-xrandr-emulation

This commit is contained in:
Joshua Ashton 2022-05-18 14:43:48 +00:00 committed by Simon Ser
parent 17b2b06633
commit 02e648c1b2
3 changed files with 13 additions and 0 deletions

View file

@ -90,6 +90,14 @@ noreturn static void exec_xwayland(struct wlr_xwayland_server *server,
server->options.no_touch_pointer_emulation = false;
#endif
#if HAVE_XWAYLAND_FORCE_XRANDR_EMULATION
if (server->options.force_xrandr_emulation) {
argv[i++] = "-force-xrandr-emulation";
}
#else
server->options.force_xrandr_emulation = false;
#endif
argv[i++] = NULL;
assert(i < sizeof(argv) / sizeof(argv[0]));