Ecore_X(cb): Work around (possible) xcb bug where
ecore_x_screen_index_get was not returning the proper 0-based index. NB: Fixes OpenGL with xcb. SVN revision: 63440
This commit is contained in:
parent
b17b7abfe0
commit
5f037fce40
|
@ -1167,13 +1167,15 @@ EAPI int
|
|||
ecore_x_screen_index_get(const Ecore_X_Screen *screen)
|
||||
{
|
||||
xcb_screen_iterator_t iter;
|
||||
int i = 0;
|
||||
|
||||
iter =
|
||||
xcb_setup_roots_iterator(xcb_get_setup((xcb_connection_t *)_ecore_xcb_conn));
|
||||
for (; iter.rem; xcb_screen_next(&iter))
|
||||
{
|
||||
if (iter.data == (xcb_screen_t *)screen)
|
||||
return iter.index;
|
||||
return i;
|
||||
i++;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue