From 67c41f189af218d8988359f383fe30ca4de8cf19 Mon Sep 17 00:00:00 2001 From: tiosgz Date: Sat, 16 Jul 2022 09:49:58 +0000 Subject: [PATCH] view: allow imove/iresize with subsurfaces --- kiwmi/desktop/view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kiwmi/desktop/view.c b/kiwmi/desktop/view.c index efd0d66..20eb666 100644 --- a/kiwmi/desktop/view.c +++ b/kiwmi/desktop/view.c @@ -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; }