summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c6
-rw-r--r--dwm.h2
-rw-r--r--event.c2
-rw-r--r--view.c3
4 files changed, 6 insertions, 7 deletions
diff --git a/client.c b/client.c
index d04692d..0409671 100644
--- a/client.c
+++ b/client.c
@@ -209,6 +209,8 @@ manage(Window w, XWindowAttributes *wa) {
209 c->h = wa->height; 209 c->h = wa->height;
210 c->th = bh; 210 c->th = bh;
211 updatesize(c); 211 updatesize(c);
212 c->isfixed = (c->maxw && c->minw && c->maxh && c->minh &&
213 c->maxw == c->minw && c->maxh == c->minh);
212 if(c->x + c->w + 2 * BORDERPX > sw) 214 if(c->x + c->w + 2 * BORDERPX > sw)
213 c->x = sw - c->w - 2 * BORDERPX; 215 c->x = sw - c->w - 2 * BORDERPX;
214 if(c->x < sx) 216 if(c->x < sx)
@@ -232,9 +234,7 @@ manage(Window w, XWindowAttributes *wa) {
232 updatetitle(c); 234 updatetitle(c);
233 settags(c, getclient(trans)); 235 settags(c, getclient(trans));
234 if(!c->isfloat) 236 if(!c->isfloat)
235 c->isfloat = trans 237 c->isfloat = trans || c->isfixed;
236 || (c->maxw && c->minw && c->maxh && c->minh &&
237 c->maxw == c->minw && c->maxh == c->minh);
238 resizetitle(c); 238 resizetitle(c);
239 if(clients) 239 if(clients)
240 clients->prev = c; 240 clients->prev = c;
diff --git a/dwm.h b/dwm.h
index 7cf168d..850e60b 100644
--- a/dwm.h
+++ b/dwm.h
@@ -83,7 +83,7 @@ struct Client {
83 int grav; 83 int grav;
84 long flags; 84 long flags;
85 unsigned int border, weight; 85 unsigned int border, weight;
86 Bool isfloat, ismax; 86 Bool isfloat, isfixed, ismax;
87 Bool *tags; 87 Bool *tags;
88 Client *next; 88 Client *next;
89 Client *prev; 89 Client *prev;
diff --git a/event.c b/event.c
index 42a6fc0..0e98f0f 100644
--- a/event.c
+++ b/event.c
@@ -136,7 +136,7 @@ buttonpress(XEvent *e) {
136 } 136 }
137 else if(ev->button == Button2) 137 else if(ev->button == Button2)
138 zoom(NULL); 138 zoom(NULL);
139 else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) { 139 else if(ev->button == Button3 && (arrange == dofloat || c->isfloat) && !c->isfixed) {
140 restack(); 140 restack();
141 resizemouse(c); 141 resizemouse(c);
142 } 142 }
diff --git a/view.c b/view.c
index facbb4c..85bfabf 100644
--- a/view.c
+++ b/view.c
@@ -45,8 +45,7 @@ static void
45togglemax(Client *c) { 45togglemax(Client *c) {
46 XEvent ev; 46 XEvent ev;
47 47
48 if (x->maxw && x->minw && x->maxh && x->minh && 48 if(c->isfixed)
49 x->maxw == x->minw && x->maxh == x->minh)
50 return; 49 return;
51 50
52 if((c->ismax = !c->ismax)) { 51 if((c->ismax = !c->ismax)) {