Skip to content

Instantly share code, notes, and snippets.

View hoyon's full-sized avatar

Ho-Yon Mak hoyon

View GitHub Profile
@hoyon
hoyon / wl_shell_example.cpp
Created October 20, 2018 14:41
Minimal Wayland example using wl_shell
// Compile with: g++ `pkg-config wayland-client --cflags --libs` -lrt -o wl_shell_example wl_shell_example.cpp
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <wayland-client.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>