From 859eaac28f40b3bfe5544c7ee16e5054dd2e5f53 Mon Sep 17 00:00:00 2001 From: Reginald Kennedy Date: Fri, 27 Jul 2012 10:56:38 +0800 Subject: [PATCH] Add another check before attempting to use RandR. --- spectrwm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index 0379156..4c5974b 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -1992,8 +1992,9 @@ bar_setup(struct swm_region *r) xcb_create_pixmap(conn, screen->root_depth, r->bar->buffer, r->bar->id, WIDTH(r->bar), HEIGHT(r->bar)); - xcb_randr_select_input(conn, r->bar->id, - XCB_RANDR_NOTIFY_MASK_OUTPUT_CHANGE); + if (xrandr_support) + xcb_randr_select_input(conn, r->bar->id, + XCB_RANDR_NOTIFY_MASK_OUTPUT_CHANGE); if (bar_enabled) map_window_raised(r->bar->id); -- 1.7.10.4