changeset: 2433:45e7382f4106
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Jan 29 21:22:38 2009 -0500
files: cmd/wmii/frame.c cmd/wmii9menu.c
description:
Fix wmii9menu sizing bug. Don't border borderless, selected, fullscreen clients.
diff -r 7f43306e0fed -r 45e7382f4106 cmd/wmii/frame.c
--- a/cmd/wmii/frame.c Wed Jan 28 18:35:53 2009 -0500
+++ b/cmd/wmii/frame.c Thu Jan 29 21:22:38 2009 -0500
@@ -478,7 +478,7 @@
border(img, insetrect(r, -1), 1, def.normcolor.bg);
/* Draw a border on borderless+titleless selected apps. */
- if(f->area->floating && c->borderless && c->titleless && c == selclient())
+ if(f->area->floating && c->borderless && c->titleless && !c->fullscreen && c == selclient())
setborder(c->framewin, def.border, def.focuscolor.border);
else
setborder(c->framewin, 0, 0);
diff -r 7f43306e0fed -r 45e7382f4106 cmd/wmii9menu.c
--- a/cmd/wmii9menu.c Wed Jan 28 18:35:53 2009 -0500
+++ b/cmd/wmii9menu.c Thu Jan 29 21:22:38 2009 -0500
@@ -208,6 +208,7 @@
XEvent ev;
int i, old, wide, high;
+ wide = 0;
high = labelh(font);
for(i = 0; i < numitems; i++)
wide = max(wide, textwidth(font, labels[i]));
Received on Fri Jan 30 2009 - 02:22:43 UTC
This archive was generated by hypermail 2.2.0 : Fri Jan 30 2009 - 02:24:04 UTC