PDA

View Full Version : [Solved] [DWM] All floating apart from xterms


kpedersen
July 20th, 2010, 12:11
Hello,

Just wondering if anyone here knows a solution to this...

Basically I would like dwm to get every window to be set to floating by default except from xterm which should stay as tiling.

By rearranging the layout array and putting the NULL (float) layout on top, it sets everything to float by default but the xterms all float too even if I set their isFloating to false in the Rules array.

Any suggestions?

Best Regards,

jj
July 30th, 2010, 17:35
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ NULL, NULL, NULL, NULL, True, -1 },
{ "XTerm", NULL, NULL, 0, False, -1 },
}

jj
July 30th, 2010, 17:45
oops, forgot change the NULL under tags mask to 0. So you don't get warning: initialization makes integer from pointer without a cast when compiling.

kpedersen
July 30th, 2010, 20:01
Thanks jj,

This worked perfectly!

Much Appreciated.