remove unneeded check of m in arrange()

arrange must never be called with a NULL argument
This commit is contained in:
Leonardo Hernández Hernández 2023-04-12 19:31:55 -06:00
parent da77e34ee5
commit 3c760bcd4a
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

6
dwl.c
View File

@ -480,9 +480,9 @@ arrange(Monitor *m)
wlr_scene_node_set_enabled(&m->fullscreen_bg->node, wlr_scene_node_set_enabled(&m->fullscreen_bg->node,
(c = focustop(m)) && c->isfullscreen); (c = focustop(m)) && c->isfullscreen);
if (m) strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, LENGTH(m->ltsymbol));
strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, LENGTH(m->ltsymbol));
if (m && m->lt[m->sellt]->arrange) if (m->lt[m->sellt]->arrange)
m->lt[m->sellt]->arrange(m); m->lt[m->sellt]->arrange(m);
motionnotify(0); motionnotify(0);
checkidleinhibitor(NULL); checkidleinhibitor(NULL);