summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-08-31 18:12:30 +0000
committersabetts <sabetts>2001-08-31 18:12:30 +0000
commit5ba92aaaafc8a545f1faa5563c23abfbb9e8fa03 (patch)
tree89478b4e9c1035f9478b1face069336ea15a02b0 /src/manage.c
parent82038e02ab782ce856d8f66cc0f20a6c8d8fec71 (diff)
downloadratpoison-5ba92aaaafc8a545f1faa5563c23abfbb9e8fa03.zip
maximize bug fixed. frame indicator is less intrusive
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/manage.c b/src/manage.c
index b0f6ee3..6f2357d 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -421,10 +421,8 @@ maximize_normal (rp_window *win)
#ifdef MAXSIZE_WINDOWS_ARE_TRANSIENTS
if (win->hints->flags & PMaxSize && frame)
{
- off_x = frame->x - maxx / 2
- + (frame->width - win->border * 2) / 2;
- off_y = frame->y - maxy / 2
- + (frame->height - win->border * 2) / 2;
+ off_x = (frame->width - win->border * 2) / 2 - maxx / 2;
+ off_y = (frame->height - win->border * 2) / 2 - maxy / 2;
}
#endif