Introduction
Introduction Statistics Contact Development Disclaimer Help
tapplied Hiltjo's tiny cleanup patch, thanks! - dwm - [fork] customized build o…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit c1f8688bfa56e388dac0e0a9abc90fdb0324b6db
parent bea4dd24901235691b5f7ab7b2edd4561de5af27
Author: Anselm R Garbe <[email protected]>
Date: Sat, 25 Sep 2010 13:39:08 +0000
applied Hiltjo's tiny cleanup patch, thanks!
Diffstat:
M dwm.c | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/dwm.c b/dwm.c
t@@ -372,10 +372,8 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h,…
if(c->inch)
*h -= *h % c->inch;
/* restore base dimensions */
- *w += c->basew;
- *h += c->baseh;
- *w = MAX(*w, c->minw);
- *h = MAX(*h, c->minh);
+ *w = MAX(*w + c->basew, c->minw);
+ *h = MAX(*h + c->baseh, c->minh);
if(c->maxw)
*w = MIN(*w, c->maxw);
if(c->maxh)
t@@ -845,7 +843,7 @@ focusin(XEvent *e) { /* there are some broken focus acquir…
void
focusmon(const Arg *arg) {
- Monitor *m = NULL;
+ Monitor *m;
if(!mons->next)
return;
t@@ -1100,9 +1098,7 @@ manage(Window w, XWindowAttributes *wa) {
*c = cz;
c->win = w;
updatetitle(c);
- if(XGetTransientForHint(dpy, w, &trans))
- t = wintoclient(trans);
- if(t) {
+ if(XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) {
c->mon = t->mon;
c->tags = t->tags;
}
t@@ -1117,7 +1113,7 @@ manage(Window w, XWindowAttributes *wa) {
c->h = c->oldh = wa->height;
c->oldbw = wa->border_width;
if(c->w == c->mon->mw && c->h == c->mon->mh) {
- c->isfloating = 1;
+ c->isfloating = True;
c->x = c->mon->mx;
c->y = c->mon->my;
c->bw = 0;
t@@ -1273,8 +1269,8 @@ propertynotify(XEvent *e) {
switch (ev->atom) {
default: break;
case XA_WM_TRANSIENT_FOR:
- XGetTransientForHint(dpy, c->win, &trans);
- if(!c->isfloating && (c->isfloating = (wintoclient(tra…
+ if(!c->isfloating && (XGetTransientForHint(dpy, c->win…
+ (c->isfloating = (wintoclient(trans))))
arrange(c->mon);
break;
case XA_WM_NORMAL_HINTS:
t@@ -1307,7 +1303,7 @@ clientmessage(XEvent *e) {
c->oldstate = c->isfloating;
c->oldbw = c->bw;
c->bw = 0;
- c->isfloating = 1;
+ c->isfloating = True;
resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c-…
XRaiseWindow(dpy, c->win);
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.