summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-12-20 23:42:51 +0000
committersabetts <sabetts>2001-12-20 23:42:51 +0000
commita43d89a4ac9080ba0fe48d574e604260413ef2f9 (patch)
treed707eba808b70b567e0925948655ce9495b48da5
parent4778220bdc44d0f75171f85730c78ffa69bff27a (diff)
downloadratpoison-a43d89a4ac9080ba0fe48d574e604260413ef2f9.zip
* src/manage.c (maximize_transient): always honour the current
size of the window. * src/actions.c (cmd_info): print "Transient" if the window is a transient window.
-rw-r--r--ChangeLog8
-rw-r--r--src/actions.c4
-rw-r--r--src/manage.c15
3 files changed, 14 insertions, 13 deletions
diff --git a/ChangeLog b/ChangeLog
index 530d5d4..7dbbfe6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-12-20 shawn <sabetts@vcn.bc.ca>
+
+ * src/manage.c (maximize_transient): always honour the current
+ size of the window.
+
+ * src/actions.c (cmd_info): print "Transient" if the window is a
+ transient window.
+
2001-12-18 shawn <sabetts@vcn.bc.ca>
* src/manage.c (maximize_transient): Fit the transient window
diff --git a/src/actions.c b/src/actions.c
index 950c22d..acc6398 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -1927,8 +1927,8 @@ cmd_info (int interactive, void *data)
else
{
rp_window *win = current_window();
- marked_message_printf (0, 0, " (%d,%d) %d(%s) ", win->width, win->height,
- win->number, window_name (win));
+ marked_message_printf (0, 0, " (%d,%d) %d(%s) %s", win->width, win->height,
+ win->number, window_name (win), win->transient ? "Transient ":"");
}
return NULL;
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)