From: Reginald Kennedy Date: Fri, 27 Jul 2012 02:56:38 +0000 (+0800) Subject: Add another check before attempting to use RandR. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=859eaac28f40b3bfe5544c7ee16e5054dd2e5f53;p=spectrwm.git Add another check before attempting to use RandR. --- 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);