summaryrefslogtreecommitdiff
path: root/src/bin/e_place.c
diff options
context:
space:
mode:
authorsebastid <sebastid>2005-09-22 17:10:02 +0000
committersebastid <sebastid@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2005-09-22 17:10:02 +0000
commitbcce7a8bce24ff3f373d946a4efeb8e032cfebf8 (patch)
treea09a1ccf320931eedbb63a21ff17743b793d3936 /src/bin/e_place.c
parent1a08602ddfce6318d6ba999dd63a72af12574006 (diff)
downloadenlightenment-bcce7a8bce24ff3f373d946a4efeb8e032cfebf8.tar.gz
Manual placement
SVN revision: 16850
Diffstat (limited to 'src/bin/e_place.c')
-rw-r--r--src/bin/e_place.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bin/e_place.c b/src/bin/e_place.c
index 3750e336bc..434822480d 100644
--- a/src/bin/e_place.c
+++ b/src/bin/e_place.c
@@ -480,5 +480,16 @@ e_place_zone_cursor(E_Zone *zone, int x, int y, int w, int h, int it, int *rx, i
return 1;
}
+int
+e_place_zone_manual(E_Zone *zone, int x, int w, int it, int *rx, int *ry)
+{
+ int cursor_x = 0, cursor_y = 0;
+ E_OBJECT_CHECK_RETURN(zone, 0);
+ ecore_x_pointer_xy_get(zone->container->win, &cursor_x, &cursor_y);
+ *rx = cursor_x - ((w - x) >> 1);
+ *ry = cursor_y - (it >> 1);
+
+ return 1;
+}