diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-02-15 23:12:03 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-02-15 23:12:03 +0100 |
commit | 07d719fdc57a96e6c1eacb586e30251d23878313 (patch) | |
tree | c2404dc0657f57dc5b7704e61d18b79a5ce2ef7a /src | |
parent | m (diff) | |
download | blueshift-07d719fdc57a96e6c1eacb586e30251d23878313.tar.gz blueshift-07d719fdc57a96e6c1eacb586e30251d23878313.tar.bz2 blueshift-07d719fdc57a96e6c1eacb586e30251d23878313.tar.xz |
selectable screen
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/blueshift_randr.c | 9 |
1 files changed, 5 insertions, 4 deletions
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++) |