querypointer.c (289B)
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 querypointer(Window *w) { 8 XWindow win; 9 Point pt; 10 uint ui; 11 int i; 12 13 XQueryPointer(display, w->xid, &win, &win, &i, &i, &pt.x, &pt.y, &ui); 14 return pt; 15 }