diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-03-07 00:28:04 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-07 00:16:18 +0000 |
commit | 31160ff941e34e6a148ecac8539db3150835cdb2 (patch) | |
tree | 258467f58f0741cc9bfe96401be97c1d27b05939 /video | |
parent | dcc9bc5deab932be8b4a743326f48b25ba2cbe84 (diff) | |
download | mpv-31160ff941e34e6a148ecac8539db3150835cdb2.tar.bz2 mpv-31160ff941e34e6a148ecac8539db3150835cdb2.tar.xz |
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.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/wayland_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |