From c9f1728a9c52a5454f7bdc522a3294fe97e798cb Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 15 Feb 2014 22:37:11 +0100 Subject: fix scopes 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 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/blueshift_randr.c b/src/blueshift_randr.c index 6dcadb8..635c44f 100644 --- a/src/blueshift_randr.c +++ b/src/blueshift_randr.c @@ -75,15 +75,8 @@ typedef struct blueshift_randr_crtc static xcb_connection_t* connection; -static xcb_randr_query_version_cookie_t version_cookie; -static xcb_randr_query_version_reply_t* randr_version; static xcb_generic_error_t* error; -static const xcb_setup_t* setup; -static xcb_screen_iterator_t iter; -static xcb_screen_t* screen; -static xcb_randr_get_screen_resources_current_cookie_t res_cookie; static xcb_randr_get_screen_resources_current_reply_t* res_reply; -static unsigned int crtc_count; static blueshift_randr_crtc_t* crtcs; static blueshift_randr_crtc_t* crtcs_end; @@ -97,6 +90,14 @@ static blueshift_randr_crtc_t* crtcs_end; int blueshift_randr_open(void) { blueshift_randr_crtc_t* crtcs_; + + xcb_randr_query_version_cookie_t version_cookie; + xcb_randr_query_version_reply_t* randr_version; + const xcb_setup_t* setup; + xcb_screen_iterator_t iter; + xcb_screen_t* screen; + xcb_randr_get_screen_resources_current_cookie_t res_cookie; + unsigned int crtc_count; xcb_randr_get_crtc_gamma_size_cookie_t gamma_size_cookie; xcb_randr_get_crtc_gamma_size_reply_t* gamma_size_reply; xcb_randr_get_crtc_gamma_cookie_t gamma_get_cookie; -- cgit v1.2.3-70-g09d2