aboutsummaryrefslogtreecommitdiff
path: root/xwayland/server.c
diff options
context:
space:
mode:
authorJoshua Ashton <joshua@froggi.es>2022-05-18 14:43:48 +0000
committerSimon Ser <contact@emersion.fr>2022-05-23 07:30:28 +0000
commit02e648c1b2be5aee77893b38bd4fc9923c359fe8 (patch)
treeb938f1f0b31613090102d819aa95eeaa63de1835 /xwayland/server.c
parent17b2b06633729f1826715c1d0b84614aa3cedb3a (diff)
xwayland: Add support for -force-xrandr-emulation
Diffstat (limited to 'xwayland/server.c')
-rw-r--r--xwayland/server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xwayland/server.c b/xwayland/server.c
index 8502fcec..0086ad65 100644
--- a/xwayland/server.c
+++ b/xwayland/server.c
@@ -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]));