Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_win.c
Log Message:
If we want to center a e_win, and it has a border, move it.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_win.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- e_win.c 30 Aug 2005 01:16:48 -0000 1.3
+++ e_win.c 30 Aug 2005 10:42:47 -0000 1.4
@@ -328,6 +328,13 @@
win->state.centered = 1;
_e_win_state_update(win);
}
+ if (win->border)
+ {
+ /* The window is visible, move it to the right spot */
+ e_border_move(win->border,
+ win->border->zone->x + (win->border->zone->w -
win->border->w) / 2,
+ win->border->zone->y + (win->border->zone->h -
win->border->h) / 2);
+ }
}
/* local subsystem functions */
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs