This commit is contained in:
tiosgz 2022-07-30 21:38:02 +00:00 committed by GitHub
commit b6e4459855
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,9 +147,8 @@ view_begin_interactive(
struct kiwmi_cursor *cursor = server->input.cursor; struct kiwmi_cursor *cursor = server->input.cursor;
struct wlr_surface *focused_surface = struct wlr_surface *focused_surface =
server->input.seat->seat->pointer_state.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; return;
} }