Skip to content

Commit 68b8bc6

Browse files
committed
Disable Xwayland touch pointer emulation
Depends on swaywm/wlroots#3289
1 parent 78a2496 commit 68b8bc6

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[submodule "subprojects/wlroots"]
22
path = subprojects/wlroots
3-
url = https://github.com/swaywm/wlroots.git
3+
url = https://gitlab.freedesktop.org/wlroots/wlroots.git
44
[submodule "subprojects/libliftoff"]
55
path = subprojects/libliftoff
66
url = https://github.com/emersion/libliftoff.git

src/wlserver.cpp

Lines changed: 4 additions & 0 deletions
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);

subprojects/wlroots

Submodule wlroots updated from 9579d62 to 3e801d6

0 commit comments

Comments
 (0)