projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e37c78
)
offscreen client appearance fixes
author
arg@mmvi
<unknown>
Fri, 15 Sep 2006 08:54:32 +0000
(10:54 +0200)
committer
arg@mmvi
<unknown>
Fri, 15 Sep 2006 08:54:32 +0000
(10:54 +0200)
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index dce06e94a068dd03c6376f514bb6b439d6805780..33b3c564118d1ee61b4fb9bbda80653043de7434 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-281,6
+281,16
@@
resize(Client *c, Bool sizehints, Corner sticky) {
if(sticky == BotLeft || sticky == BotRight)
c->y = bottom - c->h;
+ /* offscreen appearance fixes */
+ if(c->x + c->w < 0)
+ c->x = 0;
+ if(c->y + c->h < bh)
+ c->y = bh;
+ if(c->x > sw)
+ c->x = sw - c->w;
+ if(c->y > sh)
+ c->y = sh - c->h;
+
resizetitle(c);
wc.x = c->x;
wc.y = c->y;