diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-02-28 12:35:47 +0100 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-02-28 12:35:47 +0100 |
commit | 057f156009d8ffca124de7f00ae46c90cbd12665 (patch) | |
tree | 18027346942705ef5dfd95d540b78cd12d7b0320 | |
parent | 909241ddfe76705d8463a9158fe1c44471f23622 (diff) |
Remove unneeded atom
-rw-r--r-- | include/x11-helper.h | 3 | ||||
-rw-r--r-- | source/xrmoptions.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/x11-helper.h b/include/x11-helper.h index 0c4cb3d5..7f91b9b7 100644 --- a/include/x11-helper.h +++ b/include/x11-helper.h @@ -34,9 +34,8 @@ void window_set_atom_prop ( xcb_connection_t *xcb_connection, xcb_window_t w, xc // usable space on a monitor #define EWMH_ATOMS( X ) \ X ( _NET_WM_WINDOW_OPACITY ), \ - X ( RESOURCE_MANAGER ), \ X ( I3_SOCKET_PATH ), \ - X ( WM_WINDOW_ROLE) + X ( WM_WINDOW_ROLE ) enum { EWMH_ATOMS ( ATOM_ENUM ), NUM_NETATOMS }; diff --git a/source/xrmoptions.c b/source/xrmoptions.c index f829b1b8..c9a64e51 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -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 ) { - 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 ) { // Map Xresource entries to rofi config options. 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 ) { - 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 ); __config_parse_xresource_options_dynamic ( xDB ); XrmDestroyDatabase ( xDB ); |