From a1bfaedbd11d27d1ebda84fbe4da5d88b36e9953 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 6 Feb 2025 16:12:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Drofi=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=AF=B7=E6=B1=82=E4=B8=8D=E5=93=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/main.c b/main.c index 9a37fc21..289ee6da 100644 --- a/main.c +++ b/main.c @@ -1764,7 +1764,7 @@ void // 0.5 commitnotify(struct wl_listener *listener, void *data) { Client *c = wl_container_of(listener, c, commit); - if(!c || !c->mon || c->iskilling) + if(!c || c->iskilling) return; } @@ -2677,7 +2677,7 @@ void // 0.6 fullscreennotify(struct wl_listener *listener, void *data) { Client *c = wl_container_of(listener, c, fullscreen); - if(!c || !c->mon || c->iskilling) + if(!c || c->iskilling) return; setfullscreen(c, client_wants_fullscreen(c)); @@ -3085,7 +3085,7 @@ maximizenotify(struct wl_listener *listener, void *data) { // togglefakefullscreen(&(Arg){0}); Client *c = wl_container_of(listener, c, maximize); - if(!c || !c->mon || c->iskilling) + if(!c || c->iskilling) return; if (c->isfakefullscreen || c->isfullscreen) @@ -3130,7 +3130,7 @@ minimizenotify(struct wl_listener *listener, void *data) { // togglefakefullscreen(&(Arg){0}); Client *c = wl_container_of(listener, c, minimize); - if(!c || !c->mon || c->iskilling) + if(!c || c->iskilling) return; set_minized(c); @@ -5016,7 +5016,7 @@ updatemons(struct wl_listener *listener, void *data) { void updatetitle(struct wl_listener *listener, void *data) { Client *c = wl_container_of(listener, c, set_title); - if(!c || !c->mon || c->iskilling) + if(!c || c->iskilling) return; const char *title; @@ -5397,7 +5397,7 @@ void zoom(const Arg *arg) { void activatex11(struct wl_listener *listener, void *data) { Client *c = wl_container_of(listener, c, activate); - if(!c || !c->mon || c->iskilling) + if(!c || c->iskilling) return; /* Only "managed" windows can be activated */ @@ -5424,7 +5424,7 @@ void // 0.7 configurex11(struct wl_listener *listener, void *data) { Client *c = wl_container_of(listener, c, configure); - if(!c || !c->mon || c->iskilling) + if(!c || c->iskilling) return; struct wlr_xwayland_surface_configure_event *event = data;