cursor: Update focus at various additional points

- When XDG and XWayland views are positioned (view_moved()).
- When unmanaged XWayland surfaces are mapped, unmapped, or moved.

Do not update cursor focus during an out-of-surface drag.

Along with the existing call in desktop_move_to_front(), this
should hopefully cover the majority of cases where the cursor focus
could get out-of-date, with the possible exception of layer-shell
surfaces.
This commit is contained in:
John Lindgren 2022-09-03 17:46:53 -04:00
parent 2e81cc13d4
commit 469adc46d6
3 changed files with 11 additions and 1 deletions

View file

@ -149,6 +149,7 @@ view_moved(struct view *view)
wlr_scene_node_set_position(&view->scene_tree->node, view->x, view->y);
view_discover_output(view);
ssd_update_geometry(view);
cursor_update_focus(view->server);
}
/* N.B. Use view_move() if not resizing. */