Commit Diff


commit - 1463a5f7ba92aaa79f34cd8d1133c227b9d4ca90
commit + 4b09b4b1455e3d085a28d8534f986fe3c06ad2bd
blob - 8842d7bd57743e0675b5bd2cba419b1e5c88b0c2
blob + 526d1072e8bdfcec764ebefffb835b6f1014336d
--- mymenu.1
+++ mymenu.1
@@ -184,7 +184,7 @@ value are given, they'll be applied to the respective 
 clockwise. Other values will be ignored. The default value is 0.
 
 This particular option accepts a percentage (e.g. 10%) relative to the
-window's width.
+screen width.
 .It MyMenu.border.color
 A list of colors for the borders. This field is parsed like the
 MyMenu.border.size. The default value is black.
blob - 8567748ecd527deea91c9b0b0798235780ec0292
blob + 9e543d47d2a02d3e7af5bae0bbf428a2e617dca2
--- mymenu.1.md
+++ mymenu.1.md
@@ -267,7 +267,7 @@ MyMenu.border.size
 > clockwise. Other values will be ignored. The default value is 0.
 
 > This particular option accepts a percentage (e.g. 10%) relative to the
-> window's width.
+> screen width.
 
 MyMenu.border.color
 
blob - 1f38aba52acfe5caee0cb5019f478e77020c06e3
blob + e626a79ecce000bb8af8f5ba78dd87491f400d27
--- mymenu.c
+++ mymenu.c
@@ -1702,7 +1702,7 @@ main(int argc, char **argv)
 			borders = parse_csslike(value.addr);
 			if (borders != NULL)
 				for (i = 0; i < 4; ++i)
-					r.borders[i] = parse_int_with_percentage(borders[i], 0, (i % 2) == 0 ? r.height : r.width);
+					r.borders[i] = parse_int_with_percentage(borders[i], 0, (i % 2) == 0 ? d_height : d_width);
 			else
 				fprintf(stderr, "error while parsing MyMenu.border.size\n");
 		}