fix: crash when pointerfocus to a null scene client

This commit is contained in:
DreamMaoMao 2026-02-11 20:44:44 +08:00
parent de867294dc
commit 910bb78dab

View file

@ -4263,7 +4263,7 @@ void pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
uint32_t time) {
struct timespec now;
if (sloppyfocus && !start_drag_window && c && time &&
if (sloppyfocus && !start_drag_window && c && time && c->scene &&
c->scene->node.enabled && !c->animation.tagining &&
(surface != seat->pointer_state.focused_surface) &&
!client_is_unmanaged(c) && VISIBLEON(c, c->mon))