From 29096a9a856180592d3022f2fcce029c5d0b4906 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 25 Mar 2025 21:26:10 +0800 Subject: [PATCH] opt: optimize selmon update --- maomao.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/maomao.c b/maomao.c index d55a4103..20679602 100644 --- a/maomao.c +++ b/maomao.c @@ -3131,10 +3131,6 @@ void focusclient(Client *c, int lift) { if (c && client_surface(c) == old_keyboard_focus_surface) return; - if (c && c->mon && c->mon != selmon) { - selmon = c->mon; - } - if (selmon && selmon->sel && selmon->sel->foreign_toplevel) { wlr_foreign_toplevel_handle_v1_set_activated(selmon->sel->foreign_toplevel, false);