Remove unneeded atom

This commit is contained in:
Dave Davenport 2016-02-28 12:35:47 +01:00
parent 909241ddfe
commit 057f156009
2 changed files with 3 additions and 4 deletions

View file

@ -34,9 +34,8 @@ void window_set_atom_prop ( xcb_connection_t *xcb_connection, xcb_window_t w, xc
// usable space on a monitor // usable space on a monitor
#define EWMH_ATOMS( X ) \ #define EWMH_ATOMS( X ) \
X ( _NET_WM_WINDOW_OPACITY ), \ X ( _NET_WM_WINDOW_OPACITY ), \
X ( RESOURCE_MANAGER ), \
X ( I3_SOCKET_PATH ), \ X ( I3_SOCKET_PATH ), \
X ( WM_WINDOW_ROLE) X ( WM_WINDOW_ROLE )
enum { EWMH_ATOMS ( ATOM_ENUM ), NUM_NETATOMS }; enum { EWMH_ATOMS ( ATOM_ENUM ), NUM_NETATOMS };

View file

@ -225,7 +225,7 @@ static void __config_parse_xresource_options ( XrmDatabase xDB )
} }
void config_parse_xresource_options ( xcb_connection_t *xcb_connection, xcb_screen_t *xcb_screen ) void config_parse_xresource_options ( xcb_connection_t *xcb_connection, xcb_screen_t *xcb_screen )
{ {
char *name = window_get_text_prop ( xcb_connection, xcb_screen->root, netatoms[RESOURCE_MANAGER]); char *name = window_get_text_prop ( xcb_connection, xcb_screen->root, XCB_ATOM_RESOURCE_MANAGER);
if ( name ) { if ( name ) {
// Map Xresource entries to rofi config options. // Map Xresource entries to rofi config options.
XrmDatabase xDB = XrmGetStringDatabase ( name ); XrmDatabase xDB = XrmGetStringDatabase ( name );
@ -331,7 +331,7 @@ static void __config_parse_xresource_options_dynamic ( XrmDatabase xDB )
void config_parse_xresource_options_dynamic ( xcb_connection_t *xcb_connection, xcb_screen_t *xcb_screen ) void config_parse_xresource_options_dynamic ( xcb_connection_t *xcb_connection, xcb_screen_t *xcb_screen )
{ {
char *name = window_get_text_prop ( xcb_connection, xcb_screen->root, netatoms[RESOURCE_MANAGER]); char *name = window_get_text_prop ( xcb_connection, xcb_screen->root, XCB_ATOM_RESOURCE_MANAGER);
XrmDatabase xDB = XrmGetStringDatabase ( name ); XrmDatabase xDB = XrmGetStringDatabase ( name );
__config_parse_xresource_options_dynamic ( xDB ); __config_parse_xresource_options_dynamic ( xDB );
XrmDestroyDatabase ( xDB ); XrmDestroyDatabase ( xDB );