Commit 6cd2ef8a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Constify XCB screen pointers

parent d83b24ea
...@@ -131,7 +131,7 @@ static int Open (vlc_object_t *obj) ...@@ -131,7 +131,7 @@ static int Open (vlc_object_t *obj)
/* Find configured screen */ /* Find configured screen */
const xcb_setup_t *setup = xcb_get_setup (conn); const xcb_setup_t *setup = xcb_get_setup (conn);
xcb_screen_t *scr = NULL; const xcb_screen_t *scr = NULL;
for (xcb_screen_iterator_t i = xcb_setup_roots_iterator (setup); for (xcb_screen_iterator_t i = xcb_setup_roots_iterator (setup);
i.rem > 0; xcb_screen_next (&i)) i.rem > 0; xcb_screen_next (&i))
{ {
......
...@@ -99,7 +99,7 @@ vout_window_t *GetWindow (vout_thread_t *obj, ...@@ -99,7 +99,7 @@ vout_window_t *GetWindow (vout_thread_t *obj,
/* Find the selected screen */ /* Find the selected screen */
const xcb_setup_t *setup = xcb_get_setup (conn); const xcb_setup_t *setup = xcb_get_setup (conn);
xcb_screen_t *screen = NULL; const xcb_screen_t *screen = NULL;
for (xcb_screen_iterator_t i = xcb_setup_roots_iterator (setup); for (xcb_screen_iterator_t i = xcb_setup_roots_iterator (setup);
i.rem > 0 && screen == NULL; xcb_screen_next (&i)) i.rem > 0 && screen == NULL; xcb_screen_next (&i))
{ {
......
...@@ -154,7 +154,7 @@ static int Open (vlc_object_t *obj) ...@@ -154,7 +154,7 @@ static int Open (vlc_object_t *obj)
/* Find configured screen */ /* Find configured screen */
const xcb_setup_t *setup = xcb_get_setup (conn); const xcb_setup_t *setup = xcb_get_setup (conn);
xcb_screen_t *scr = NULL; const xcb_screen_t *scr = NULL;
for (xcb_screen_iterator_t i = xcb_setup_roots_iterator (setup); for (xcb_screen_iterator_t i = xcb_setup_roots_iterator (setup);
i.rem > 0; xcb_screen_next (&i)) i.rem > 0; xcb_screen_next (&i))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment