From f24b1e38904f1baf351502bfa630b3b9d7d2e2f1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 3 Apr 2014 00:10:43 +0200 Subject: add multi-display support 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.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/blueshift_randr_c.c') diff --git a/src/blueshift_randr_c.c b/src/blueshift_randr_c.c index 6a15715..0c99533 100644 --- a/src/blueshift_randr_c.c +++ b/src/blueshift_randr_c.c @@ -48,9 +48,10 @@ static blueshift_randr_crtc_t* crtcs_end; * Start stage of colour curve control * * @param use_screen The screen to use + * @param display The display to use, `NULL` for the current one * @return Zero on success */ -int blueshift_randr_open(int use_screen) +int blueshift_randr_open(int use_screen, char* display) { blueshift_randr_crtc_t* crtcs_; @@ -69,7 +70,7 @@ int blueshift_randr_open(int use_screen) /* Get X connection */ - connection = xcb_connect(NULL, NULL); + connection = xcb_connect(display, NULL); /* Check RandR protocol version */ -- cgit v1.2.3-70-g09d2