Package: sawfish / 1:1.5.3-2.4

limit-max-dimensions.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: cap max-width / max-height of a window
 Cherry-picked from upstream commit 798c6992.
 Fixes issues with Iceweasel 17.
Author: Robert Bihlmeyer <robbe@orcus.priv.at>
Origin: upstream
Bug-Debian: 711846

--- sawfish-1.5.3.orig/src/windows.c
+++ sawfish-1.5.3/src/windows.c
@@ -1286,6 +1286,13 @@ associated with WINDOW. Possible keys in
     hints = &VWIN(win)->hints;
     flags = hints->flags;
 
+    /* workaround stuff like Firefox 17 that
+     * has enormous max-width/maxh-height */
+    if (hints->max_width >= 32767)
+	    hints->max_width = 32767;
+    if (hints->max_height >= 32767)
+	    hints->max_height = 32767;
+
     /* Some sanity checking */
     if ((flags & PMinSize) 
 	&& (hints->min_width < 0 || hints->min_height < 0))