Enlightenment CVS committal Author : handyande Project : e17 Module : apps/e_utils
Dir : e17/apps/e_utils/src/bin/exige Modified Files: Exige.h exg_gui.c Log Message: Patch from Jonathan Schmidt to place run window under pointer =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/exige/Exige.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- Exige.h 5 Jun 2005 14:55:58 -0000 1.1 +++ Exige.h 5 Jun 2005 15:38:41 -0000 1.2 @@ -7,7 +7,6 @@ #include <Ecore_Evas.h> #include <Esmart/Esmart_Text_Entry.h> #include <Edje.h> -#include <Emotion.h> #include <Ecore_Config.h> #include "config.h" =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/exige/exg_gui.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- exg_gui.c 5 Jun 2005 14:55:58 -0000 1.1 +++ exg_gui.c 5 Jun 2005 15:38:41 -0000 1.2 @@ -60,6 +60,8 @@ exg_window_geometry_set(Exige *exg) { Evas_Coord w,h; + int mouse_x = 0, mouse_y = 0; + Ecore_X_Window win; edje_object_size_min_get(exg->gui, &w, &h); ecore_evas_resize(exg->ee, w, h); @@ -68,6 +70,11 @@ ecore_evas_size_max_set(exg->ee,w,h); ecore_evas_show(exg->ee); + + /* get the coords. of the mouse */ + win = ecore_evas_software_x11_window_get(exg->ee); + ecore_x_pointer_xy_get(win, &mouse_x, &mouse_y); + ecore_evas_move(exg->ee, mouse_x - (w / 2), mouse_y - (h / 2)); evas_object_move(exg->gui,0,0); evas_object_resize(exg->gui,w,h); ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs