summaryrefslogtreecommitdiffstats
path: root/dwl.c
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-04-12 19:31:55 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-04-13 13:12:27 -0600
commit3c760bcd4ae640ec27229da8c75e9539bfd0d5cc (patch)
tree63f0b6844817e4220bc6b2d34f70cf8280526092 /dwl.c
parentUse uint32_t for ui Arg (diff)
downloaddwl-3c760bcd4ae640ec27229da8c75e9539bfd0d5cc.tar.gz
dwl-3c760bcd4ae640ec27229da8c75e9539bfd0d5cc.tar.bz2
dwl-3c760bcd4ae640ec27229da8c75e9539bfd0d5cc.tar.xz
dwl-3c760bcd4ae640ec27229da8c75e9539bfd0d5cc.tar.zst
dwl-3c760bcd4ae640ec27229da8c75e9539bfd0d5cc.zip
remove unneeded check of `m` in arrange()
arrange must never be called with a NULL argument
Diffstat (limited to '')
-rw-r--r--dwl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index e59eae4..3442dcb 100644
--- a/dwl.c
+++ b/dwl.c
@@ -480,9 +480,9 @@ arrange(Monitor *m)
wlr_scene_node_set_enabled(&m->fullscreen_bg->node,
(c = focustop(m)) && c->isfullscreen);
- if (m)
- strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, LENGTH(m->ltsymbol));
- if (m && m->lt[m->sellt]->arrange)
+ strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, LENGTH(m->ltsymbol));
+
+ if (m->lt[m->sellt]->arrange)
m->lt[m->sellt]->arrange(m);
motionnotify(0);
checkidleinhibitor(NULL);