summaryrefslogtreecommitdiff
path: root/main.c
blob: 94ee87a45c5a06e7957cdbe049b60f9665aa62a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21


#include <unistd.h>
#include <stdio.h>
#include <wayland-client.h>


int main(void)
{
	struct wl_display *display = wl_display_connect(NULL);
	if (!display) {
		fprintf(stderr, "Failed to connect to Wayland display.\n");
		return 1;
	}
	fprintf(stderr, "Connection established!\n");

	sleep(2);

	wl_display_disconnect(display);
	return 0;
}