Make it easier to use other atoms.

This commit is contained in:
Fernando Tarlá Cardoso Lemos 2011-03-13 20:44:16 -03:00 committed by Michael Stapelberg
parent c0563af3e2
commit 77db9f937f
2 changed files with 26 additions and 25 deletions

View File

@ -1,5 +1,5 @@
/* /*
* vim:ts=8:expandtab * vim:ts=4:sw=4:expandtab
* *
* i3 - an improved dynamic tiling window manager * i3 - an improved dynamic tiling window manager
* *
@ -17,12 +17,11 @@
#include "queue.h" #include "queue.h"
#include "data.h" #include "data.h"
#include "xcb.h"
#ifndef _I3_H #ifndef _I3_H
#define _I3_H #define _I3_H
#define NUM_ATOMS 21
extern xcb_connection_t *conn; extern xcb_connection_t *conn;
extern xcb_key_symbols_t *keysyms; extern xcb_key_symbols_t *keysyms;
extern char **start_argv; extern char **start_argv;

View File

@ -1,5 +1,5 @@
/* /*
* vim:ts=8:expandtab * vim:ts=4:sw=4:expandtab
* *
* i3 - an improved dynamic tiling window manager * i3 - an improved dynamic tiling window manager
* *
@ -45,27 +45,29 @@
XCB_EVENT_MASK_ENTER_WINDOW) /* …user moves cursor inside our window */ XCB_EVENT_MASK_ENTER_WINDOW) /* …user moves cursor inside our window */
enum { _NET_SUPPORTED = 0, enum {
_NET_SUPPORTING_WM_CHECK, _NET_SUPPORTED = 0,
_NET_WM_NAME, _NET_SUPPORTING_WM_CHECK,
_NET_WM_STATE_FULLSCREEN, _NET_WM_NAME,
_NET_WM_STATE, _NET_WM_STATE_FULLSCREEN,
_NET_WM_WINDOW_TYPE, _NET_WM_STATE,
_NET_WM_WINDOW_TYPE_DOCK, _NET_WM_WINDOW_TYPE,
_NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_DOCK,
_NET_WM_WINDOW_TYPE_UTILITY, _NET_WM_WINDOW_TYPE_DIALOG,
_NET_WM_WINDOW_TYPE_TOOLBAR, _NET_WM_WINDOW_TYPE_UTILITY,
_NET_WM_WINDOW_TYPE_SPLASH, _NET_WM_WINDOW_TYPE_TOOLBAR,
_NET_WM_DESKTOP, _NET_WM_WINDOW_TYPE_SPLASH,
_NET_WM_STRUT_PARTIAL, _NET_WM_DESKTOP,
WM_PROTOCOLS, _NET_WM_STRUT_PARTIAL,
WM_DELETE_WINDOW, WM_PROTOCOLS,
UTF8_STRING, WM_DELETE_WINDOW,
WM_STATE, UTF8_STRING,
WM_CLIENT_LEADER, WM_STATE,
_NET_CURRENT_DESKTOP, WM_CLIENT_LEADER,
_NET_ACTIVE_WINDOW, _NET_CURRENT_DESKTOP,
_NET_WORKAREA _NET_ACTIVE_WINDOW,
_NET_WORKAREA,
NUM_ATOMS
}; };
extern unsigned int xcb_numlock_mask; extern unsigned int xcb_numlock_mask;