File: render-extension.c

package info (click to toggle)
libx11-protocol-other-perl 31-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,760 kB
  • sloc: perl: 17,593; ansic: 666; sh: 285; lisp: 143; makefile: 42
file content (29 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdio.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrender.h>

int main (int argc, char *argv[])
{
  Display *display;
  int event = 999999999, error = 9999999;

  putenv ("DISPLAY=:2");

  display = XOpenDisplay (NULL);
  printf ("dpy %p\n", display);

  XSynchronize (display, True);

  sleep (15);
  printf ("%d\n", XRenderQueryExtension (display, &event, &error));

  
/*   { */
/*     Window focus; */
/*     int revert; */
/*     XGetInputFocus (display, &focus, &revert); */
/*   } */

  XCloseDisplay (display);
  return 0;
}