Enlightenment CVS committal Author : kwo Project : e16 Module : e
Dir : e16/e/src Modified Files: E.h borders.c icccm.c snaps.c Log Message: Make fullscreen windows borderless. =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/E.h,v retrieving revision 1.299 retrieving revision 1.300 diff -u -3 -r1.299 -r1.300 --- E.h 1 Jul 2004 21:04:40 -0000 1.299 +++ E.h 2 Jul 2004 17:36:57 -0000 1.300 @@ -934,6 +934,7 @@ Window win_container; WinClient client; Border *border; + Border *normal_border; Border *previous_border; EWinBit *bits; int flags; =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/borders.c,v retrieving revision 1.206 retrieving revision 1.207 diff -u -3 -r1.206 -r1.207 --- borders.c 1 Jul 2004 21:04:41 -0000 1.206 +++ borders.c 2 Jul 2004 17:36:58 -0000 1.207 @@ -1129,6 +1129,8 @@ { Border *b; + ewin->normal_border = ewin->border; + /* Quit if we allready have a border that isn't the fallback one */ b = ewin->border; if (b && strcmp(b->name, "__FALLBACK_BORDER")) @@ -3201,6 +3203,7 @@ EwinSetFullscreen(EWin * ewin, int on) { int x, y, w, h; + Border *b; if (ewin->st.fullscreen == on) return; @@ -3213,13 +3216,12 @@ ewin->lh = ewin->client.h; ewin->ll = ewin->layer; ScreenGetGeometry(ewin->x, ewin->y, &x, &y, &w, &h); - x -= ewin->border->border.left; - y -= ewin->border->border.top; #if 0 ewin->layer = 10; #endif ewin->fixedpos = 1; ewin->st.fullscreen = 1; + b = (Border *) FindItem("BORDERLESS", 0, LIST_FINDBY_NAME, LIST_TYPE_BORDER); } else { @@ -3230,10 +3232,12 @@ ewin->layer = ewin->ll; ewin->fixedpos = 0; /* Yeah - well */ ewin->st.fullscreen = 0; + b = ewin->normal_border; } RaiseEwin(ewin); MoveResizeEwin(ewin, x, y, w, h); HintsSetWindowState(ewin); + EwinSetBorder(ewin, b, 1); } void =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/icccm.c,v retrieving revision 1.71 retrieving revision 1.72 diff -u -3 -r1.71 -r1.72 --- icccm.c 30 Jun 2004 13:04:00 -0000 1.71 +++ icccm.c 2 Jul 2004 17:36:58 -0000 1.72 @@ -1099,8 +1099,8 @@ XChangeProperty(disp, ewin->client.win, a, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)c, 8); XChangeProperty(disp, ewin->client.win, aa, XA_STRING, 8, PropModeReplace, - (unsigned char *)ewin->border->name, - strlen(ewin->border->name) + 1); + (unsigned char *)ewin->normal_border->name, + strlen(ewin->normal_border->name) + 1); if (EventDebug(EDBUG_TYPE_SNAPS)) Eprintf("Snap set einf %#lx: %4d+%4d %4dx%4d: %s\n", ewin->client.win, ewin->client.x, ewin->client.y, =================================================================== RCS file: /cvsroot/enlightenment/e16/e/src/snaps.c,v retrieving revision 1.70 retrieving revision 1.71 diff -u -3 -r1.70 -r1.71 --- snaps.c 27 Jun 2004 15:59:32 -0000 1.70 +++ snaps.c 2 Jul 2004 17:36:58 -0000 1.71 @@ -592,7 +592,7 @@ if (ewin->previous_border) sn->border_name = Estrdup(ewin->previous_border->name); else if (ewin->border) - sn->border_name = Estrdup(ewin->border->name); + sn->border_name = Estrdup(ewin->normal_border->name); } void ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs