Hi, I've noticed, that, when I open mplayer (with -noborder) and use 'f' to make it fullscreen, wmii still draws the 1px border around it which will then overlap with my other screen (xinerama).
So, I wrote a patch which checks if the floating window fills the whole screen und then does not draw the border around that window. Find it attached to this mail. Best regards, Michael
diff -r 621b1245dc16 cmd/wmii/frame.c
--- a/cmd/wmii/frame.c Sat Jan 10 17:53:19 2009 -0500
+++ b/cmd/wmii/frame.c Thu Jan 29 18:16:03 2009 +0100
@@ -425,6 +425,7 @@
char *s;
uint w;
int n, m;
+ bool fullscreen = false;
if(f->view != selview)
return;
@@ -475,8 +476,14 @@
if(c != disp.focus && col == &def.focuscolor)
border(img, insetrect(r, -1), 1, def.normcolor.bg);
+ for(n=0; n < nscreens; n++)
+ if (eqrect(screens[n]->r, f->r)) {
+ fullscreen = true;
+ break;
+ }
+
/* 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 ==
selclient() && !fullscreen)
setborder(c->framewin, def.border, def.focuscolor.border);
else
setborder(c->framewin, 0, 0);
pgppb0D2HTrbn.pgp
Description: PGP signature
