Hi,

I like it a lot! Thanks for your work.

> The geometry indicator is only displayed in the bar, if there
> are more than a single geometry.
>
> Same applies to the layout indicator -- though only very few
> people use dwm with tilev only.

There's an off-by-one error: If the geometry indicator is not present
and you click (button 1) on one of the leftmost pixels of the bar, it
toggles the layout instead of selecting the first tag. If none of the
indicators are present, clicking there does nothing at all.

Also, a very simple patch is attached that makes the special case n==1
in tiled mode configurable, maybe you have use for it. Before, I used
to open a terminal just to reduce Firefox's width for better reading.

Regards,
Peter
diff -r 414f32ca9701 config.def.h
--- a/config.def.h      Mon Mar 24 14:30:39 2008 +0000
+++ b/config.def.h      Mon Mar 24 21:24:26 2008 +0100
@@ -31,6 +31,7 @@ Geom geoms[] = {
 };
 
 /* layout(s) */
+#define OVERFLOWSINGLE         True    /* False - single tiled client 
overflows to stack */
 #define RESIZEHINTS            True    /* False - respect size hints in tiled 
resizals */
 #define SNAP                   32      /* snap pixel */
 
diff -r 414f32ca9701 dwm.c
--- a/dwm.c     Mon Mar 24 14:30:39 2008 +0000
+++ b/dwm.c     Mon Mar 24 21:24:26 2008 +0100
@@ -1660,7 +1660,7 @@ tilemaster(unsigned int n) {
 tilemaster(unsigned int n) {
        Client *c = nexttiled(clients);
 
-       if(n == 1)
+       if(OVERFLOWSINGLE && n == 1)
                tileresize(c, mox, moy, mow - 2 * c->bw, moh - 2 * c->bw);
        else
                tileresize(c, mx, my, mw - 2 * c->bw, mh - 2 * c->bw);

Reply via email to