summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/client.c b/client.c
index 0309eac..73f21ed 100644
--- a/client.c
+++ b/client.c
@@ -258,15 +258,7 @@ manage(Window w, XWindowAttributes *wa)
258 c->maxw == c->minw && c->maxh == c->minh); 258 c->maxw == c->minw && c->maxh == c->minh);
259 settitle(c); 259 settitle(c);
260 260
261 if(trans && (tc = getclient(trans))) { 261 if(!trans) {
262 c->x = (tc->x + tc->w / 2) - (c->w / 2);
263 c->y = (tc->y + tc->h / 2) - (c->h / 2);
264 if((c->x + c->w < 0) || (c->x >= sw))
265 c->x = (sw / 2) - (c->w / 2);
266 if((c->y + c->h < 0) || (c->y >= sh))
267 c->y = ((sh - bh) / 2) - (c->h / 2) + bh;
268 }
269 else {
270 c->x = (sw / 2) - (c->w / 2); 262 c->x = (sw / 2) - (c->w / 2);
271 c->y = ((sh - bh) / 2) - (c->h / 2) + bh; 263 c->y = ((sh - bh) / 2) - (c->h / 2) + bh;
272 } 264 }