]> git.sur5r.net Git - i3/i3/blobdiff - src/xcursor.c
Merge branch 'release-4.16.1'
[i3/i3] / src / xcursor.c
index dbaf2e5b1b28b5850e9fdcd9c3a576a2f0a85652..cbfe808bcd11e625909db179fe9d68e787ceba20 100644 (file)
@@ -1,14 +1,14 @@
-#undef I3__FILE__
-#define I3__FILE__ "xcursor.c"
 /*
  * vim:ts=4:sw=4:expandtab
  *
  * i3 - an improved dynamic tiling window manager
- * © 2009-2013 Michael Stapelberg and contributors (see also: LICENSE)
+ * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
  *
  * xcursor.c: xcursor support for themed cursors.
  *
  */
+#include <config.h>
+
 #include <assert.h>
 #include <xcb/xcb_cursor.h>
 
@@ -23,8 +23,7 @@ static const int xcb_cursors[XCURSOR_CURSOR_MAX] = {
     XCB_CURSOR_LEFT_PTR,
     XCB_CURSOR_SB_H_DOUBLE_ARROW,
     XCB_CURSOR_SB_V_DOUBLE_ARROW,
-    XCB_CURSOR_WATCH
-};
+    XCB_CURSOR_WATCH};
 
 void xcursor_load_cursors(void) {
     if (xcb_cursor_context_new(conn, root_screen, &ctx) < 0) {
@@ -32,8 +31,8 @@ void xcursor_load_cursors(void) {
         xcursor_supported = false;
         return;
     }
-#define LOAD_CURSOR(constant, name) \
-    do { \
+#define LOAD_CURSOR(constant, name)                            \
+    do {                                                       \
         cursors[constant] = xcb_cursor_load_cursor(ctx, name); \
     } while (0)
     LOAD_CURSOR(XCURSOR_CURSOR_POINTER, "left_ptr");
@@ -57,7 +56,7 @@ void xcursor_load_cursors(void) {
  */
 void xcursor_set_root_cursor(int cursor_id) {
     xcb_change_window_attributes(conn, root, XCB_CW_CURSOR,
-        (uint32_t[]){ xcursor_get_cursor(cursor_id) });
+                                 (uint32_t[]){xcursor_get_cursor(cursor_id)});
 }
 
 xcb_cursor_t xcursor_get_cursor(enum xcursor_cursor_t c) {