From 62d3329906470b9f3776dfd8fec65e0a64caab0c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 9 May 2012 20:00:46 +0200 Subject: [PATCH] remove dead code This was a left-over of commit 9d68d780e2ca45e231a3cb76063860c561e0453c --- src/main.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/main.c b/src/main.c index 44c3f3cb..39288295 100644 --- a/src/main.c +++ b/src/main.c @@ -270,7 +270,6 @@ int main(int argc, char *argv[]) { {0, 0, 0, 0} }; int option_index = 0, opt; - xcb_void_cookie_t colormap_cookie; setlocale(LC_ALL, ""); @@ -541,20 +540,6 @@ int main(int argc, char *argv[]) { cookie = xcb_change_window_attributes_checked(conn, root, mask, values); check_error(conn, cookie, "Another window manager seems to be running"); - /* By now we already checked for replies once, so let’s see if colormap - * creation worked (if requested). */ - if (colormap != root_screen->default_colormap) { - xcb_generic_error_t *error = xcb_request_check(conn, colormap_cookie); - if (error != NULL) { - ELOG("Could not create ColorMap for 32 bit visual, falling back to X11 default.\n"); - root_depth = root_screen->root_depth; - visual_id = root_screen->root_visual; - colormap = root_screen->default_colormap; - DLOG("root_depth = %d, visual_id = 0x%08x.\n", root_depth, visual_id); - free(error); - } - } - xcb_get_geometry_reply_t *greply = xcb_get_geometry_reply(conn, gcookie, NULL); if (greply == NULL) { ELOG("Could not get geometry of the root window, exiting\n"); -- 2.39.5