Skip to content

Commit 7c18a80

Browse files
committed
Disable Xwayland touch pointer emulation
Depends on swaywm/wlroots#3289
1 parent d3496fd commit 7c18a80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wlserver.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ const struct wlr_surface_role xwayland_surface_role = {
110110
static void xwayland_ready(struct wl_listener *listener, void *data)
111111
{
112112
bXwaylandReady = true;
113+
114+
if (!wlserver.wlr.xwayland_server->options.no_touch_pointer_emulation)
115+
wl_log.infof("Xwayland doesn't support -noTouchPointerEmulation, touch events might get duplicated");
113116
}
114117

115118
struct wl_listener xwayland_ready_listener = { .notify = xwayland_ready };
@@ -734,6 +737,7 @@ bool wlserver_init( void ) {
734737
struct wlr_xwayland_server_options xwayland_options = {
735738
.lazy = false,
736739
.enable_wm = false,
740+
.no_touch_pointer_emulation = true,
737741
};
738742
wlserver.wlr.xwayland_server = wlr_xwayland_server_create(wlserver.display, &xwayland_options);
739743
wl_signal_add(&wlserver.wlr.xwayland_server->events.ready, &xwayland_ready_listener);

0 commit comments

Comments
 (0)