summaryrefslogtreecommitdiff
path: root/src/wayland/keyboard.c
diff options
context:
space:
mode:
authorBerke Güzel <wenekar1@gmail.com>2026-10-12 14:31:10 +0300
committerBerke Güzel <wenekar1@gmail.com>2026-10-12 14:31:10 +0300
commitdfebac1019560e278c605247de3b98cff1d73226 (patch)
tree21df3066f2e60496f259a5981ca5501b4e395b61 /src/wayland/keyboard.c
parent9ed89c17dee752154c36d71cae93d20cccfc71ef (diff)
perf: cache Cocoa software MTLBuffer and optimize Wayland output/focus loops
Diffstat (limited to 'src/wayland/keyboard.c')
-rw-r--r--src/wayland/keyboard.c3
1 files changed, 2 insertions, 1 deletions
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,