diff -ruN -X /home/jjm/cvs/no.freeciv thueciv/client/control.c freeciv/client/control.c --- thueciv/client/control.c Sat Oct 21 12:34:28 2000 +++ freeciv/client/control.c Sat Oct 21 12:43:22 2000 @@ -69,8 +69,10 @@ { assert(punit || state==HOVER_NONE); draw_goto_line = 1; - if (punit) hover_unit = punit->id; - else hover_unit = 0; + if (punit) + hover_unit = punit->id; + else + hover_unit = 0; hover_state = state; undraw_line(); } diff -ruN -X /home/jjm/cvs/no.freeciv thueciv/client/gui-stub/mapctrl.c freeciv/client/gui-stub/mapctrl.c --- thueciv/client/gui-stub/mapctrl.c Sat Oct 21 12:34:28 2000 +++ freeciv/client/gui-stub/mapctrl.c Sat Oct 21 12:36:49 2000 @@ -21,5 +21,5 @@ void create_line_at_mouse_pos(void) { - /* PORME */ + /* PORTME */ } diff -ruN -X /home/jjm/cvs/no.freeciv thueciv/client/gui-xaw/mapctrl.c freeciv/client/gui-xaw/mapctrl.c --- thueciv/client/gui-xaw/mapctrl.c Sat Oct 21 12:34:28 2000 +++ freeciv/client/gui-xaw/mapctrl.c Sat Oct 21 12:30:45 2000 @@ -342,7 +342,21 @@ **************************************************************************/ void create_line_at_mouse_pos(void) { - /* FIXME: How to extract the cursor position? */ + Bool on_same_screen; + Window root, child; + int rx, ry, x, y; + unsigned int mask; + + on_same_screen = + XQueryPointer(display, XtWindow(map_canvas), + &root, &child, + &rx, &ry, + &x, &y, + &mask); + + if (on_same_screen) { + update_line(x, y); + } } /************************************************************************** diff -ruN -X /home/jjm/cvs/no.freeciv thueciv/client/gui-xaw/mapctrl.h freeciv/client/gui-xaw/mapctrl.h --- thueciv/client/gui-xaw/mapctrl.h Sat Oct 21 12:34:28 2000 +++ freeciv/client/gui-xaw/mapctrl.h Sat Oct 21 12:40:30 2000 @@ -29,7 +29,6 @@ void center_on_unit(void); void update_line(int window_x, int window_y); -void create_line_at_mouse_pos(void); #endif /* FC__MAPCTRL_H */