Introduction
Introduction Statistics Contact Development Disclaimer Help
tapplied offscreen appearance hotfix - dwm - [fork] customized build of dwm, th…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 1f18466409aeb40e27b79814247dbda2d40369e2
parent b65a1e33793b42f2718ccf6aa81dbd456f3fe7b9
Author: Anselm R. Garbe <[email protected]>
Date: Wed, 24 Jan 2007 17:24:55 +0100
applied offscreen appearance hotfix
Diffstat:
M client.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/client.c b/client.c
t@@ -142,14 +142,14 @@ manage(Window w, XWindowAttributes *wa) {
}
else {
c->border = BORDERPX;
- if(c->x < wax)
- c->x = wax;
- if(c->y < way)
- c->y = way;
if(c->x + c->w + 2 * c->border > wax + waw)
c->x = wax + waw - c->w - 2 * c->border;
if(c->y + c->h + 2 * c->border > way + wah)
c->y = way + wah - c->h - 2 * c->border;
+ if(c->x < wax)
+ c->x = wax;
+ if(c->y < way)
+ c->y = way;
}
updatesizehints(c);
c->proto = getproto(c->win);
t@@ -197,14 +197,14 @@ resize(Client *c, Bool sizehints) {
else
c->border = BORDERPX;
/* offscreen appearance fixes */
- if(c->x + c->w + 2 * c->border < sx)
- c->x = sx;
- if(c->y + c->h + 2 * c->border < sy)
- c->y = sy;
if(c->x > sw)
c->x = sw - c->w - 2 * c->border;
if(c->y > sh)
c->y = sh - c->h - 2 * c->border;
+ if(c->x + c->w + 2 * c->border < sx)
+ c->x = sx;
+ if(c->y + c->h + 2 * c->border < sy)
+ c->y = sy;
wc.x = c->x;
wc.y = c->y;
wc.width = c->w;
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.