Fix wmii9menu sizing bug. Don't border borderless, selected, fullscreen clients.

This commit is contained in:
Kris Maglione 2009-01-29 21:22:38 -05:00
parent 71884fe934
commit 69c95ddfee
2 changed files with 2 additions and 1 deletions

View File

@ -478,7 +478,7 @@ frame_draw(Frame *f) {
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);

View File

@ -208,6 +208,7 @@ run_menu(void)
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]));