From 71c1ada1a477e010acd7d694ab6aa981d3b68252 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Thu, 8 Feb 2018 00:33:13 +0000 Subject: Close display on exit --- clipnotify.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/clipnotify.c b/clipnotify.c index 8adac43..f09583e 100644 --- a/clipnotify.c +++ b/clipnotify.c @@ -1,8 +1,8 @@ -#include -#include -#include #include +#include #include +#include +#include int main(void) { Display *disp; @@ -24,6 +24,5 @@ int main(void) { XFixesSelectSelectionInput(disp, root, clip, XFixesSetSelectionOwnerNotifyMask); XNextEvent(disp, &evt); - - return 0; + XCloseDisplay(disp); } -- cgit 1.4.1