summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 09:47:34 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-11-23 10:21:02 +0100
commit0e31e477e5eedff5a87d01b39dc75d381f55e43a (patch)
tree1e0ef140751f1411f0acf43744479c3b5b6c5b66 /src/screen.c
parentc1deb5c9ea2712cb1faed32a5905914517c04024 (diff)
downloadratpoison-0e31e477e5eedff5a87d01b39dc75d381f55e43a.zip
Only call xrandr_fill_screen is xrandr is available
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 115aeca..ea00262 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -575,7 +575,8 @@ screen_add (int rr_output)
change_windows_screen (NULL, screen);
#ifdef HAVE_LIBXRANDR
- xrandr_fill_screen (rr_output, screen);
+ if (rp_have_xrandr)
+ xrandr_fill_screen (rr_output, screen);
#endif
init_screen (screen);
init_frame_list (screen);