fix: 修复 raise_or_run 可能聚焦窗口不对 bug

This commit is contained in:
2026-03-22 00:44:43 +08:00
parent 123fe77bbb
commit 86a89452a7
6 changed files with 63 additions and 3 deletions

View File

@@ -313,6 +313,8 @@ static void expose(xcb_expose_event_t *ev) {
}
static void enter_notify(xcb_enter_notify_event_t *ev) {
if (wm_should_ignore_enter_notify(ev)) return;
client_t *client = client_get_by_window(ev->event);
if (!client || wm.client_focused == client) return;