Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
apply small fix to prevent apps like mplayer wandering when toggling fullscreen
[dwm.git]
/
client.c
diff --git
a/client.c
b/client.c
index
60f1cbe
..
49d40d5
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-202,8
+202,8
@@
manage(Window w, XWindowAttributes *wa) {
c = emallocz(sizeof(Client));
c->tags = emallocz(ntags * sizeof(Bool));
c->win = w;
c = emallocz(sizeof(Client));
c->tags = emallocz(ntags * sizeof(Bool));
c->win = w;
- c->x = c->tx = wa->x;
- c->y = c->ty = wa->y;
+ c->x = c->tx = wa->x;
c->x -= BORDERPX;
+ c->y = c->ty = wa->y;
c->y -= BORDERPX;
c->w = c->tw = wa->width;
c->h = wa->height;
c->th = bh;
c->w = c->tw = wa->width;
c->h = wa->height;
c->th = bh;
@@
-246,7
+246,7
@@
manage(Window w, XWindowAttributes *wa) {
XMapWindow(dpy, c->twin);
if(isvisible(c))
focus(c);
XMapWindow(dpy, c->twin);
if(isvisible(c))
focus(c);
- arrange(
NULL
);
+ arrange();
}
void
}
void
@@
-393,5
+393,5
@@
unmanage(Client *c) {
XSync(dpy, False);
XSetErrorHandler(xerror);
XUngrabServer(dpy);
XSync(dpy, False);
XSetErrorHandler(xerror);
XUngrabServer(dpy);
- arrange(
NULL
);
+ arrange();
}
}