wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

pointerscreen.c (292B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 int
      7 pointerscreen(void) {
      8 	XWindow win;
      9 	Point pt;
     10 	uint ui;
     11 	int i;
     12 
     13 	return XQueryPointer(display, scr.root.xid, &win, &win, &i, &i,
     14 			     &pt.x, &pt.y, &ui);
     15 }