From 51ef7c59607bf5bc0d036675ccfc335a83dd38d0 Mon Sep 17 00:00:00 2001 From: llyyr Date: Sat, 14 Mar 2026 19:14:47 +0530 Subject: [PATCH] wayland: use wayland-edge-pixels-pointer for tablet input resize zone Tablet input is more similar to mouse input than it is to touch input, so it makes sens to use wayland-edge-pixels-pointer instead. Also document that it's used for tablet input, previously this was completely undocumented. --- DOCS/man/options.rst | 4 ++-- video/out/wayland_common.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 4ce543a18d..4b6696838a 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -6335,8 +6335,8 @@ them. ``--wayland-edge-pixels-pointer=`` Defines the size of an edge border (default: 16) to initiate client side - resize events in the wayland contexts with the mouse. This is only active if - there are no server side decorations from the compositor. + resize events in the wayland contexts with the mouse or tablet. This is only + active if there are no server side decorations from the compositor. ``--wayland-edge-pixels-touch=`` Defines the size of an edge border (default: 32) to initiate client side diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 202d1b2d0f..25a440cbe6 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -709,7 +709,7 @@ static void tablet_tool_handle_down(void *data, enum xdg_toplevel_resize_edge edge; if (!mp_input_test_dragging(wl->vo->input_ctx, wl->mouse_x, wl->mouse_y) && !wl->locked_size && !wl->opts->border && - check_for_resize(wl, wl->opts->wl_edge_pixels_touch, &edge)) + check_for_resize(wl, wl->opts->wl_edge_pixels_pointer, &edge)) { xdg_toplevel_resize(wl->xdg_toplevel, tablet_tool->seat->seat, serial, edge); return;