- /*if (fullscreen) {
- // get root window size
- width = DisplayWidth(display, vi->screen);
- height = DisplayHeight(display, vi->screen);
- printf("Display size: %dx%d\n", width, height);
- // set window attributes
- winAttr.override_redirect = True;
- window = XCreateWindow(display, RootWindow(display, vi->screen),
- 0, 0, width, height, 0, vi->depth, InputOutput, vi->visual,
- CWBorderPixel | CWColormap | CWEventMask | CWOverrideRedirect, &winAttr);
- XWarpPointer(display, None, window, 0, 0, 0, 0, 0, 0);
- XMapRaised(display, window);
- XGrabKeyboard(display, window, True, GrabModeAsync, GrabModeAsync, CurrentTime);
- XGrabPointer(display, window, True, ButtonPressMask, GrabModeAsync, GrabModeAsync, window, None, CurrentTime);
- }
- else {*/