summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--clipnotify.c9
1 files 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 <stdio.h>
-#include <stdlib.h>
-#include <X11/Xlib.h>
 #include <X11/Xatom.h>
+#include <X11/Xlib.h>
 #include <X11/extensions/Xfixes.h>
+#include <stdio.h>
+#include <stdlib.h>
 
 int main(void) {
     Display *disp;
@@ -24,6 +24,5 @@ int main(void) {
     XFixesSelectSelectionInput(disp, root, clip, XFixesSetSelectionOwnerNotifyMask);
 
     XNextEvent(disp, &evt);
-
-    return 0;
+    XCloseDisplay(disp);
 }