summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-08-27 19:17:55 +0000
committersabetts <sabetts>2001-08-27 19:17:55 +0000
commit9737a39966ba9fad1f7d7819b0593b2f8bd99a1b (patch)
tree79979d78dc4b6246069a558e45d962346f79c1e7
parent45ddc51e6a9258aa56c74912f5986faf469ca5fb (diff)
downloadratpoison-9737a39966ba9fad1f7d7819b0593b2f8bd99a1b.zip
maximize bug
-rw-r--r--ChangeLog3
-rw-r--r--src/manage.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 80ea44c..25d5b13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2001-08-27 Shawn <sabetts@hotdog>
+ * src/manage.c (maximize_normal)[MAXSIZE_WINDOWS_ARE_TRANSIENTS]:
+ use maxx, maxy not the window's width and height.
+
* src/events.c (handle_key): use marked_message_printf to notify
user of an unbound key.
diff --git a/src/manage.c b/src/manage.c
index 311cf5c..e60c422 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -421,9 +421,9 @@ maximize_normal (rp_window *win)
#ifdef MAXSIZE_WINDOWS_ARE_TRANSIENTS
if (win->hints->flags & PMaxSize && frame)
{
- off_x = frame->x - win->width / 2
+ off_x = frame->x - maxx / 2
+ (frame->width - win->border * 2) / 2;
- off_y = frame->y - win->height / 2
+ off_y = frame->y - maxy / 2
+ (frame->height - win->border * 2) / 2;
}
#endif