mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
Adding if conditions before freeing res_class and res_name in applyrules
This commit is contained in:
parent
1bed3b0093
commit
7c4a0c347f
12
dwm.c
12
dwm.c
@ -569,14 +569,16 @@ applyrules(Client *c)
|
||||
#endif // SWITCHTAG_PATCH
|
||||
}
|
||||
}
|
||||
XFree(ch.res_class);
|
||||
XFree(ch.res_name);
|
||||
if (ch.res_class)
|
||||
XFree(ch.res_class);
|
||||
if (ch.res_name)
|
||||
XFree(ch.res_name);
|
||||
#if EMPTYVIEW_PATCH
|
||||
if(c->tags & TAGMASK) c->tags = c->tags & TAGMASK;
|
||||
if (c->tags & TAGMASK) c->tags = c->tags & TAGMASK;
|
||||
#if SCRATCHPAD_PATCH
|
||||
else if(c->mon->tagset[c->mon->seltags]) c->tags = c->mon->tagset[c->mon->seltags] & ~SPTAGMASK;
|
||||
else if (c->mon->tagset[c->mon->seltags]) c->tags = c->mon->tagset[c->mon->seltags] & ~SPTAGMASK;
|
||||
#else
|
||||
else if(c->mon->tagset[c->mon->seltags]) c->tags = c->mon->tagset[c->mon->seltags];
|
||||
else if (c->mon->tagset[c->mon->seltags]) c->tags = c->mon->tagset[c->mon->seltags];
|
||||
#endif // SCRATCHPAD_PATCH
|
||||
else c->tags = 1;
|
||||
#elif SCRATCHPAD_PATCH
|
||||
|
Loading…
x
Reference in New Issue
Block a user