Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dddd58a
)
applied ality's hardcode-0 patches
author
Anselm R. Garbe
<arg@10kloc.org>
Fri, 29 Sep 2006 16:21:02 +0000
(18:21 +0200)
committer
Anselm R. Garbe
<arg@10kloc.org>
Fri, 29 Sep 2006 16:21:02 +0000
(18:21 +0200)
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index
98b46a3
..
efa9669
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-216,10
+216,10
@@
manage(Window w, XWindowAttributes *wa) {
if(c->x + c->w + 2 * BORDERPX > sw)
c->x = sw - c->w - 2 * BORDERPX;
if(c->x + c->w + 2 * BORDERPX > sw)
c->x = sw - c->w - 2 * BORDERPX;
- if(c->x < 0)
- c->x = 0;
+ if(c->x < sx)
+ c->x = sx;
if(c->y + c->h + 2 * BORDERPX > sh)
if(c->y + c->h + 2 * BORDERPX > sh)
- c->y = sh - c->h - 2;
+ c->y = sh - c->h - 2 * BORDERPX;
if(c->h != sh && c->y < bh)
c->y = bh;
if(c->h != sh && c->y < bh)
c->y = bh;
@@
-285,8
+285,8
@@
resize(Client *c, Bool sizehints, Corner sticky) {
c->y = bottom - c->h;
/* offscreen appearance fixes */
c->y = bottom - c->h;
/* offscreen appearance fixes */
- if(c->x + c->w < 0)
- c->x = 0;
+ if(c->x + c->w < sx)
+ c->x = sx;
if(c->y + c->h < bh)
c->y = bh;
if(c->x > sw)
if(c->y + c->h < bh)
c->y = bh;
if(c->x > sw)