Explorar o código

using None instead of 0 for trans

Anselm R Garbe %!s(int64=17) %!d(string=hai) anos
pai
achega
2ce50a9cad
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      dwm.c

+ 2 - 2
dwm.c

@@ -865,7 +865,7 @@ killclient(const Arg *arg) {
 void
 manage(Window w, XWindowAttributes *wa) {
 	Client *c, *t = NULL;
-	Window trans = 0;
+	Window trans = None;
 	XWindowChanges wc;
 
 	if(!(c = calloc(1, sizeof(Client))))
@@ -909,7 +909,7 @@ manage(Window w, XWindowAttributes *wa) {
 	else
 		applyrules(c);
 	if(!c->isfloating)
-		c->isfloating = trans || c->isfixed;
+		c->isfloating = trans != None || c->isfixed;
 	if(c->isfloating)
 		XRaiseWindow(dpy, c->win);
 	attach(c);