WMII Reforge  Artifact [f8ba729f72]

Artifact f8ba729f726a1421cc2a989286486ab15ac80d8f0fdd91f4373ea5f2dc563a9b:

  • File cmd/x11/wiwarp.c — part of check-in [15eae1e8e6] at 2019-06-20 16:42:23 on branch trunk — Import sources to have something to work with (user: KhazAkar size: 564)

/* Copyight 2008 Kris Maglione <maglione.k at Gmail>
 * See LICENSE file for license details.
 */
#include <ctype.h>
#include <stdarg.h>
#include <stdbool.h>
#include <string.h>
#include <stuff/x.h>
#include <stuff/util.h>
#include <fmt.h>

int
main(int argc, char *argv[]) {
	Point pt;

	ARGBEGIN{
	}ARGEND;

	initdisplay();

	if(argc) {
		if(!getint(EARGF(exit(1)), &pt.x))
			exit(1);
		if(!getint(EARGF(exit(1)), &pt.y))
			exit(1);
	}else {
		pt = querypointer(&scr.root);
		lprint(1, "%d %d\n", pt.x, pt.y);
	}

	warppointer(pt);
	XCloseDisplay(display);
}