wmii

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

setfocus.c (461B)


      1 /* Copyight 2008 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include <ctype.h>
      5 #include <stdarg.h>
      6 #include <stdbool.h>
      7 #include <string.h>
      8 #include <stuff/x.h>
      9 #include <stuff/util.h>
     10 #include <fmt.h>
     11 
     12 int
     13 main(int argc, char *argv[]) {
     14 	XWindow w;
     15 
     16 	ARGBEGIN{
     17 	}ARGEND;
     18 
     19 	initdisplay();
     20 
     21 	if(!getulong(EARGF(exit(1)), &w))
     22 		exit(1);
     23 
     24 	XSetInputFocus(display, w, RevertToParent, CurrentTime);
     25 	XCloseDisplay(display);
     26 }
     27