diff --git a/clutter/clutter/x11/clutter-stage-x11.c b/clutter/clutter/x11/clutter-stage-x11.c index 63b2e5b15..41bd8ca75 100644 --- a/clutter/clutter/x11/clutter-stage-x11.c +++ b/clutter/clutter/x11/clutter-stage-x11.c @@ -1531,29 +1531,3 @@ _clutter_stage_x11_set_user_time (ClutterStageX11 *stage_x11, set_user_time (backend_x11, stage_x11, user_time); } - -gboolean -_clutter_stage_x11_get_root_coords (ClutterStageX11 *stage_x11, - gint *root_x, - gint *root_y) -{ - ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_x11); - ClutterBackendX11 *backend_x11 = CLUTTER_BACKEND_X11 (stage_cogl->backend); - gint return_val; - Window child; - gint tx, ty; - - return_val = XTranslateCoordinates (backend_x11->xdpy, - stage_x11->xwin, - backend_x11->xwin_root, - 0, 0, &tx, &ty, - &child); - - if (root_x) - *root_x = tx; - - if (root_y) - *root_y = ty; - - return (return_val == 0); -} diff --git a/clutter/clutter/x11/clutter-stage-x11.h b/clutter/clutter/x11/clutter-stage-x11.h index 0bf1295ca..1e0351046 100644 --- a/clutter/clutter/x11/clutter-stage-x11.h +++ b/clutter/clutter/x11/clutter-stage-x11.h @@ -85,9 +85,6 @@ void _clutter_stage_x11_events_device_changed (ClutterStageX11 *stage_x11, /* Private to subclasses */ void _clutter_stage_x11_set_user_time (ClutterStageX11 *stage_x11, guint32 user_time); -gboolean _clutter_stage_x11_get_root_coords (ClutterStageX11 *stage_x11, - gint *root_x, - gint *root_y); G_END_DECLS