Skip to content

Commit

Permalink
Disable Xwayland touch pointer emulation
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Oct 22, 2021
1 parent d3496fd commit 7c18a80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wlserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ const struct wlr_surface_role xwayland_surface_role = {
static void xwayland_ready(struct wl_listener *listener, void *data)
{
bXwaylandReady = true;

if (!wlserver.wlr.xwayland_server->options.no_touch_pointer_emulation)
wl_log.infof("Xwayland doesn't support -noTouchPointerEmulation, touch events might get duplicated");
}

struct wl_listener xwayland_ready_listener = { .notify = xwayland_ready };
Expand Down Expand Up @@ -734,6 +737,7 @@ bool wlserver_init( void ) {
struct wlr_xwayland_server_options xwayland_options = {
.lazy = false,
.enable_wm = false,
.no_touch_pointer_emulation = true,
};
wlserver.wlr.xwayland_server = wlr_xwayland_server_create(wlserver.display, &xwayland_options);
wl_signal_add(&wlserver.wlr.xwayland_server->events.ready, &xwayland_ready_listener);
Expand Down

0 comments on commit 7c18a80

Please sign in to comment.