JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
applied nsz' remark
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index db9e9c0..ef723cc 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1015,7 +1015,7 @@ propertynotify(XEvent *e) {
        Window trans;
        XPropertyEvent *ev = &e->xproperty;
 
-       if((ev->window == root) && (ev->atom = XA_WM_NAME))
+       if((ev->window == root) && (ev->atom == XA_WM_NAME))
                updatestatus();
        else if(ev->state == PropertyDelete)
                return; /* ignore */
@@ -1463,7 +1463,7 @@ toggletag(const Arg *arg) {
                return;
        
        mask = sel->tags ^ (arg->ui & TAGMASK);
-       if(sel && mask) {
+       if(mask) {
                sel->tags = mask;
                arrange();
        }