From 31160ff941e34e6a148ecac8539db3150835cdb2 Mon Sep 17 00:00:00 2001 From: Christoph Heinrich Date: Tue, 7 Mar 2023 00:28:04 +0100 Subject: wayland: fix client side resize `xdg_toplevel_decoration` exists on SSD compositors independent of if there is a border or not, so resizing didn't work on those. Checking the border option makes more sense and also works on such compositors. --- video/out/wayland_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index ee4ac030dd..664afd3d44 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -272,7 +272,7 @@ static void pointer_handle_button(void *data, struct wl_pointer *wl_pointer, (button == MP_MBTN_LEFT) && (state == MP_KEY_STATE_DOWN)) { uint32_t edges; // Implement an edge resize zone if there are no decorations - if (!wl->xdg_toplevel_decoration && + if (!wl->vo_opts->border && check_for_resize(wl, wl->mouse_unscaled_x, wl->mouse_unscaled_y, wl->opts->edge_pixels_pointer, &edges)) xdg_toplevel_resize(wl->xdg_toplevel, wl->seat, serial, edges); -- cgit v1.2.3