From dfebac1019560e278c605247de3b98cff1d73226 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 14:31:10 +0300 Subject: perf: cache Cocoa software MTLBuffer and optimize Wayland output/focus loops --- src/wayland/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/wayland/keyboard.c') diff --git a/src/wayland/keyboard.c b/src/wayland/keyboard.c index f7e2691..11c7f3f 100644 --- a/src/wayland/keyboard.c +++ b/src/wayland/keyboard.c @@ -170,7 +170,8 @@ static void seat_settle_focus(struct seat *s) void keyboard_settle_focus(struct wayland_display *c) { for (struct seat *s = c->seats; s; s = s->next) - seat_settle_focus(s); + if (s->focus_leaving) + seat_settle_focus(s); } static void keyboard_leave(void *data, struct wl_keyboard *keyboard, -- cgit v1.2.3