summaryrefslogtreecommitdiff
path: root/xfixes.c
blob: 4222cc3c5a693e515dd1ad2230e495ac68254746 (plain)
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
30
31
32
33
34
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <wayland-client.h>

#include <X11/Xproto.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xfixes.h>

#include "private.h"

struct csx_xfixes {
	struct csx_extension extension;
};

int
csx_display_add_xfixes(struct csx_display *display)
{

	struct csx_xfixes *xfixes;

	xfixes = malloc(sizeof *xfixes);
	if (xfixes == NULL)
		return -1;

	csx_display_add_extension(display, &xfixes->extension,
				  XFIXES_NAME,
				  XFixesNumberEvents,
				  XFixesNumberErrors);

	return 0;
}