blob: c5a23ccc178673f90329bf6864ff4a1fbddb3a99 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const x11 = @import("x11.zig");
pub fn main() anyerror!void {
const display = x11.openDisplay(null) orelse return error.SystemResources;
defer _ = x11.closeDisplay(display);
const root = x11.getDefaultRootWindow(display);
x11.getSelection(display, root, "PRIMARY");
x11.getSelection(display, root, "CLIPBOARD");
var event: x11.Event = undefined;
_ = x11.nextEvent(display, &event);
}
|