wmii

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

getfocus.c (236B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 XWindow
      7 getfocus(void) {
      8 	XWindow ret;
      9 	int revert;
     10 
     11 	XGetInputFocus(display, &ret, &revert);
     12 	return ret;
     13 }