diff options
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig new file mode 100644 index 0000000..c5a23cc --- /dev/null +++ b/src/main.zig @@ -0,0 +1,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); +} |