summaryrefslogtreecommitdiffstats
path: root/src/blueshift_randr_c.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-04-03 00:10:43 +0200
committerMattias Andrée <maandree@operamail.com>2014-04-03 00:10:43 +0200
commitf24b1e38904f1baf351502bfa630b3b9d7d2e2f1 (patch)
tree7347eec3bbfc9da872d160ca77c378f96f783841 /src/blueshift_randr_c.c
parentupdate deps (diff)
downloadblueshift-f24b1e38904f1baf351502bfa630b3b9d7d2e2f1.tar.gz
blueshift-f24b1e38904f1baf351502bfa630b3b9d7d2e2f1.tar.bz2
blueshift-f24b1e38904f1baf351502bfa630b3b9d7d2e2f1.tar.xz
add multi-display support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/blueshift_randr_c.c5
1 files changed, 3 insertions, 2 deletions
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 */