view: allow imove/iresize with subsurfaces

This commit is contained in:
tiosgz 2022-07-16 09:49:58 +00:00
parent 17814972ab
commit 67c41f189a

View file

@ -147,9 +147,8 @@ view_begin_interactive(
struct kiwmi_cursor *cursor = server->input.cursor;
struct wlr_surface *focused_surface =
server->input.seat->seat->pointer_state.focused_surface;
struct wlr_surface *wlr_surface = view->wlr_surface;
if (wlr_surface != focused_surface) {
if (view->wlr_surface != wlr_surface_get_root_surface(focused_surface)) {
return;
}