aboutsummaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2022-06-16 09:39:03 +0200
committerGitea <gitea@fake.local>2022-06-28 21:28:06 +0200
commitb162aee497ef9be3730f59bb0c9d974171bfebee (patch)
tree9dd81766b59b6463cc23e698b3a8875a84e4e16c /window.c
parent6d5a04005dd1dff12ebfe2e3a56912ec26718f3f (diff)
downloadnsxiv-b162aee497ef9be3730f59bb0c9d974171bfebee.tar.zst
sort and group includes
* includes are sorted alphabetically * their grouping and layout is the following: - nsxiv.h will be the first include - followed by any internal headers (e.g "commands.h" "config.h") - followed by system headers (<stdlib.h> etc) - followed by third party headers (X.h libwebp etc) * also add `llvm-include-order` check to clang-tidy so that it can catch unsorted includes during CI.
Diffstat (limited to 'window.c')
-rw-r--r--window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/window.c b/window.c
index 3cfa188..f472474 100644
--- a/window.c
+++ b/window.c
@@ -22,13 +22,14 @@
#include "config.h"
#include "icon/data.h"
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
-#include <locale.h>
#include <unistd.h>
-#include <X11/cursorfont.h>
+
#include <X11/Xatom.h>
#include <X11/Xresource.h>
+#include <X11/cursorfont.h>
#if HAVE_LIBFONTS
#include "utf8.h"