summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-18 05:37:43 +0200
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2017-09-18 05:53:38 +0200
commit0a90c2ac60cbb511ec24a52d723291d82a0124ba (patch)
tree27ee058cd47209a434054bea944ca8ec721de653 /src/screen.c
parent3742bc308693252ed092fcf1a49177cb78e10d3c (diff)
downloadratpoison-0a90c2ac60cbb511ec24a52d723291d82a0124ba.zip
Swap argument and return value of xrandr_query_screen
Leads to clearer code in screen.c
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 2c36a6b..65cca2e 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -300,7 +300,7 @@ init_screens (void)
/* Get the number of screens */
if (rp_have_xrandr) {
#ifdef HAVE_XRANDR
- rr_outputs = xrandr_query_screen (&screen_count);
+ screen_count = xrandr_query_screen (&rr_outputs);
#endif
} else {
screen_count = ScreenCount (dpy);