mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
dcc9bc5dea
commit
31160ff941
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue