translate.c (311B)
1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail> 2 * See LICENSE file for license details. 3 */ 4 #include "../x11.h" 5 6 Point 7 translate(Window *src, Window *dst, Point sp) { 8 Point pt; 9 XWindow w; 10 11 XTranslateCoordinates(display, src->xid, dst->xid, sp.x, sp.y, 12 &pt.x, &pt.y, &w); 13 return pt; 14 }