Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_win.c Log Message: Use the right engine, and only center if asked for. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_win.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- e_win.c 4 Oct 2005 11:15:33 -0000 1.8 +++ e_win.c 4 Oct 2005 17:56:08 -0000 1.9 @@ -41,7 +41,7 @@ win = E_OBJECT_ALLOC(E_Win, E_WIN_TYPE, _e_win_free); if (!win) return NULL; win->container = con; - win->engine = e_canvas_engine_decide(e_config->evas_engine_errors); + win->engine = e_canvas_engine_decide(e_config->evas_engine_win); win->ecore_evas = e_canvas_new(e_config->evas_engine_win, con->manager->root, 0, 0, 1, 1, 0, 0, &(win->evas_win), NULL); @@ -312,11 +312,6 @@ void e_win_centered_set(E_Win *win, int centered) { - /* TODO: - * if win->border is set the window is shown, so we have to tell - * e to center this window by message, now it is checked at - * border creation. - */ E_OBJECT_CHECK(win); E_OBJECT_TYPE_CHECK(win, E_WIN_TYPE); if ((win->state.centered) && (!centered)) @@ -329,7 +324,7 @@ win->state.centered = 1; _e_win_state_update(win); } - if (win->border) + if ((win->border) && (centered)) { /* The window is visible, move it to the right spot */ e_border_move(win->border, ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs