Query Xinerama first.

SVN revision: 17264
This commit is contained in:
sebastid 2005-10-07 08:33:10 +00:00 committed by sebastid
parent a834628ff1
commit 619fc03aed
1 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,6 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
/* /*
* Xinerama code * Xinerama code
*/ */
@ -15,14 +18,17 @@ int
ecore_x_xinerama_screen_count_get(void) ecore_x_xinerama_screen_count_get(void)
{ {
#ifdef ECORE_XINERAMA #ifdef ECORE_XINERAMA
int event_base, error_base;
if (_xin_info) XFree(_xin_info); if (_xin_info) XFree(_xin_info);
_xin_info = NULL; _xin_info = NULL;
_xin_info = XineramaQueryScreens(_ecore_x_disp, &_xin_scr_num); if (XineramaQueryExtension(_ecore_x_disp, &event_base, &error_base))
if (_xin_info) return _xin_scr_num; {
else return 0; _xin_info = XineramaQueryScreens(_ecore_x_disp, &_xin_scr_num);
#else if (_xin_info) return _xin_scr_num;
return 0; }
#endif #endif
return 0;
} }
int int