forked from enlightenment/efl
Ecore_X(cb): Return correct screen from ecore_x_screen_get
SVN revision: 63818
This commit is contained in:
parent
a3d4b58959
commit
2dde82d216
|
@ -1207,16 +1207,14 @@ EAPI Ecore_X_Screen *
|
||||||
ecore_x_screen_get(int index)
|
ecore_x_screen_get(int index)
|
||||||
{
|
{
|
||||||
xcb_screen_iterator_t iter;
|
xcb_screen_iterator_t iter;
|
||||||
|
int i = 0;
|
||||||
|
|
||||||
CHECK_XCB_CONN;
|
CHECK_XCB_CONN;
|
||||||
|
|
||||||
iter =
|
iter =
|
||||||
xcb_setup_roots_iterator(xcb_get_setup(_ecore_xcb_conn));
|
xcb_setup_roots_iterator(xcb_get_setup(_ecore_xcb_conn));
|
||||||
for (; iter.rem; xcb_screen_next(&iter))
|
for (i = 0; iter.rem; xcb_screen_next(&iter), i++)
|
||||||
{
|
if (i == index) return iter.data;
|
||||||
if (iter.index == index)
|
|
||||||
return iter.data;
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue