summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/manage.c b/src/manage.c
index de1e358..d95154c 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -424,17 +424,10 @@ maximize_transient (rp_window *win)
frame = win->frame;
- /* Honour the window's maximum size */
- if (win->hints->flags & PMaxSize)
- {
- maxx = win->hints->max_width;
- maxy = win->hints->max_height;
- }
- else
- {
- maxx = win->width;
- maxy = win->height;
- }
+ /* Always use the window's current width and height for
+ transients. */
+ maxx = win->width;
+ maxy = win->height;
/* Fit the window inside its frame (if it has one) */
if (frame)