summaryrefslogtreecommitdiffstats
path: root/src/blueshift_randr.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-02-15 22:37:11 +0100
committerMattias Andrée <maandree@operamail.com>2014-02-15 22:37:11 +0100
commitc9f1728a9c52a5454f7bdc522a3294fe97e798cb (patch)
tree49e218d7f1330da931ee601d415a50238b4d22ad /src/blueshift_randr.c
parentdoc (diff)
downloadblueshift-c9f1728a9c52a5454f7bdc522a3294fe97e798cb.tar.gz
blueshift-c9f1728a9c52a5454f7bdc522a3294fe97e798cb.tar.bz2
blueshift-c9f1728a9c52a5454f7bdc522a3294fe97e798cb.tar.xz
fix scopes
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/blueshift_randr.c')
-rw-r--r--src/blueshift_randr.c15
1 files 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;