opt:optimize edge focus judge

This commit is contained in:
DreamMaoMao 2026-06-11 12:37:48 +08:00
parent 94db68ef88
commit 33cda5afea

View file

@ -4812,7 +4812,7 @@ void motionnotify(uint32_t time, struct wlr_input_device *device, double dx,
if (!surface && !seat->drag && !cursor_hidden)
wlr_cursor_set_xcursor(cursor, cursor_mgr, "default");
if (c && c->mon && !c->animation.running && (INSIDEMON(c) || !ISTILED(c))) {
if (c && c->mon && !c->animation.running && (INSIDEMON(c) || !ISSCROLLTILED(c))) {
scroller_focus_lock = 0;
}