From 07d719fdc57a96e6c1eacb586e30251d23878313 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 15 Feb 2014 23:12:03 +0100 Subject: selectable screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blueshift_randr.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/blueshift_randr.c b/src/blueshift_randr.c index b0915bc..98ba2a3 100644 --- a/src/blueshift_randr.c +++ b/src/blueshift_randr.c @@ -99,9 +99,10 @@ static uint16_t* b_curve; /** * Start stage of colour curve control * - * @return Zero on success + * @param use_screen The screen to use + * @return Zero on success */ -int blueshift_randr_open(void) +int blueshift_randr_open(int use_screen) { blueshift_randr_crtc_t* crtcs_; @@ -121,7 +122,7 @@ int blueshift_randr_open(void) /* Get X connection */ - connection = xcb_connect(NULL, NULL /* preferred screen */); + connection = xcb_connect(NULL, &use_screen); /* Check RANDR protocol version */ @@ -298,7 +299,7 @@ int main(int argc, char** argv) (void) argc; (void) argv; - if (blueshift_randr_open()) + if (blueshift_randr_open(0)) return 1; for (i = 0; i < 256; i++) -- cgit v1.2.3-70-g09d2