summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2002-01-26 11:56:06 +0000
committersabetts <sabetts>2002-01-26 11:56:06 +0000
commit17f8b39f56521459d6debf30908c25613decec3f (patch)
tree897330880a9497cb0675ab8ebda07a3d0878789c
parentc6ad09dc4e666fde6a30379002ea12aa9010f6fe (diff)
downloadratpoison-17f8b39f56521459d6debf30908c25613decec3f.zip
(set_active_window): Corrected a bug in determining
what a maxsize window is. Only one of width or height must be less than the screen width or height for a window to qualify as a maxsize window.
-rw-r--r--ChangeLog7
-rw-r--r--src/list.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b8ee1f4..d22578f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-01-26 shawn <sabetts@vcn.bc.ca>
+
+ * src/list.c (set_active_window): Corrected a bug in determining
+ what a maxsize window is. Only one of width or height must be less
+ than the screen width or height for a window to qualify as a
+ maxsize window.
+
2002-01-24 shawn <sabetts@vcn.bc.ca>
* src/actions.c (cmd_defbarloc): Read the location argument as a
diff --git a/src/list.c b/src/list.c
index d85ebdf..30e0325 100644
--- a/src/list.c
+++ b/src/list.c
@@ -564,6 +564,7 @@ is_transient_ancestor (rp_window *win, rp_window *transient_for)
}
#endif
+/* In the current frame, set the active window to win. win will have focus. */
void
set_active_window (rp_window *win)
{
@@ -583,8 +584,8 @@ set_active_window (rp_window *win)
#ifdef MAXSIZE_WINDOWS_ARE_TRANSIENTS
if (!win->transient
&& !(win->hints->flags & PMaxSize
- && win->hints->max_width < win->scr->root_attr.width
- && win->hints->max_height < win->scr->root_attr.height))
+ && (win->hints->max_width < win->scr->root_attr.width
+ || win->hints->max_height < win->scr->root_attr.height)))
#else
if (!win->transient)
#endif