]> git.sur5r.net Git - i3/i3/commitdiff
Make it easier to use other atoms.
authorFernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
Sun, 13 Mar 2011 23:44:16 +0000 (20:44 -0300)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 14 Mar 2011 16:13:17 +0000 (17:13 +0100)
include/i3.h
include/xcb.h

index ed8cacb6f88b190328b54f0bc89c869ad19f3ddb..3c238c46d051dea77e725251f9e5b34f18b9d4ec 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * vim:ts=8:expandtab
+ * vim:ts=4:sw=4:expandtab
  *
  * i3 - an improved dynamic tiling window manager
  *
 
 #include "queue.h"
 #include "data.h"
+#include "xcb.h"
 
 #ifndef _I3_H
 #define _I3_H
 
-#define NUM_ATOMS 21
-
 extern xcb_connection_t *conn;
 extern xcb_key_symbols_t *keysyms;
 extern char **start_argv;
index 2d3f9cc109fb62ed335e82cc4a7949f2212a6376..8b531a3417016325251c388972ff8a8b3662182b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * vim:ts=8:expandtab
+ * vim:ts=4:sw=4:expandtab
  *
  * i3 - an improved dynamic tiling window manager
  *
                           XCB_EVENT_MASK_ENTER_WINDOW)           /* …user moves cursor inside our window */
 
 
-enum { _NET_SUPPORTED = 0,
-        _NET_SUPPORTING_WM_CHECK,
-        _NET_WM_NAME,
-        _NET_WM_STATE_FULLSCREEN,
-        _NET_WM_STATE,
-        _NET_WM_WINDOW_TYPE,
-        _NET_WM_WINDOW_TYPE_DOCK,
-        _NET_WM_WINDOW_TYPE_DIALOG,
-        _NET_WM_WINDOW_TYPE_UTILITY,
-        _NET_WM_WINDOW_TYPE_TOOLBAR,
-        _NET_WM_WINDOW_TYPE_SPLASH,
-        _NET_WM_DESKTOP,
-        _NET_WM_STRUT_PARTIAL,
-        WM_PROTOCOLS,
-        WM_DELETE_WINDOW,
-        UTF8_STRING,
-        WM_STATE,
-        WM_CLIENT_LEADER,
-        _NET_CURRENT_DESKTOP,
-        _NET_ACTIVE_WINDOW,
-        _NET_WORKAREA
+enum {
+    _NET_SUPPORTED = 0,
+    _NET_SUPPORTING_WM_CHECK,
+    _NET_WM_NAME,
+    _NET_WM_STATE_FULLSCREEN,
+    _NET_WM_STATE,
+    _NET_WM_WINDOW_TYPE,
+    _NET_WM_WINDOW_TYPE_DOCK,
+    _NET_WM_WINDOW_TYPE_DIALOG,
+    _NET_WM_WINDOW_TYPE_UTILITY,
+    _NET_WM_WINDOW_TYPE_TOOLBAR,
+    _NET_WM_WINDOW_TYPE_SPLASH,
+    _NET_WM_DESKTOP,
+    _NET_WM_STRUT_PARTIAL,
+    WM_PROTOCOLS,
+    WM_DELETE_WINDOW,
+    UTF8_STRING,
+    WM_STATE,
+    WM_CLIENT_LEADER,
+    _NET_CURRENT_DESKTOP,
+    _NET_ACTIVE_WINDOW,
+    _NET_WORKAREA,
+    NUM_ATOMS
 };
 
 extern unsigned int xcb_numlock_mask;