[hackers] [dwm] parenthized use of ISTILE macro in dwm.c

From: <arg_AT_suckless.org>
Date: Tue Oct 23 09:43:18 2007

changeset: 1039:5fa681ba70ae
tag: tip
user: arg_AT_suckless.org
date: Tue Oct 23 09:38:47 2007 +0200
summary: parenthized use of ISTILE macro in dwm.c

diff -r cdd1db1c525b -r 5fa681ba70ae dwm.c
--- a/dwm.c Fri Oct 19 09:56:51 2007 +0200
+++ b/dwm.c Tue Oct 23 09:38:47 2007 +0200
@@ -346,7 +346,7 @@ buttonpress(XEvent *e) {
                         movemouse(c);
                 }
                 else if(ev->button == Button2) {
- if(ISTILE && !c->isfixed && c->isfloating)
+ if((ISTILE) && !c->isfixed && c->isfloating)
                                 togglefloating(NULL);
                         else
                                 zoom(NULL);
@@ -1402,7 +1402,7 @@ setmwfact(const char *arg) {
 setmwfact(const char *arg) {
         double delta;
 
- if(!ISTILE)
+ if(!(ISTILE))
                 return;
         /* arg handling, manipulate mwfact */
         if(arg == NULL)
@@ -1863,7 +1863,7 @@ zoom(const char *arg) {
 zoom(const char *arg) {
         Client *c;
 
- if(!sel || !ISTILE || sel->isfloating)
+ if(!sel || !(ISTILE) || sel->isfloating)
                 return;
         if((c = sel) == nexttiled(clients))
                 if(!(c = nexttiled(c->next)))
Received on Tue Oct 23 2007 - 09:43:18 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:35 UTC