[hackers] [dwm] using None instead of 0 for trans || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Mon, 18 Aug 2008 09:22:50 +0000 (UTC)

changeset: 1333:5be4e277ed7c
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Mon Aug 18 10:22:46 2008 +0100
files: dwm.c
description:
using None instead of 0 for trans

diff -r b304593057fb -r 5be4e277ed7c dwm.c
--- a/dwm.c Mon Aug 18 10:21:24 2008 +0100
+++ b/dwm.c Mon Aug 18 10:22:46 2008 +0100
@@ -865,7 +865,7 @@
 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 @@
         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);
Received on Mon Aug 18 2008 - 09:22:50 UTC

This archive was generated by hypermail 2.2.0 : Mon Aug 18 2008 - 09:24:10 UTC