Re: [dev] [dwm] applications in floating layout mode by default

From: anonymous <p37sitdu_AT_lavabit.com>
Date: Fri, 29 Jul 2011 17:46:22 +0400

By the way, why applyrules sets tags and isfloating to 0 before applying
rules? It is already done by calloc() in manage(). And it doesn't set
c->mon to NULL, so I think we can just remove all initialization.

Code cleanup patch:

diff -r b46ae56abe65 dwm.c
--- a/dwm.c Wed Jul 27 19:59:10 2011 +0200
+++ b/dwm.c Fri Jul 29 16:44:57 2011 +0300
@@ -292,7 +292,6 @@
         XClassHint ch = { 0 };
 
         /* rule matching */
- c->isfloating = c->tags = 0;
         if(XGetClassHint(dpy, c->win, &ch)) {
                 class = ch.res_class ? ch.res_class : broken;
                 instance = ch.res_name ? ch.res_name : broken;
Received on Fri Jul 29 2011 - 15:46:22 CEST

This archive was generated by hypermail 2.2.0 : Fri Jul 29 2011 - 16:00:02 CEST