зеркало из https://github.com/mozilla/gecko-dev.git
Bug #96213. Don't query Xinerama if Xinerama is not active. Patch from Frederic Crozat <fcrozat@mandrakesoft.com>. r=blizzard, sr=shaver
This commit is contained in:
Родитель
064ee0ca23
Коммит
dc69c19eb2
|
@ -84,7 +84,13 @@ nsScreenManagerGtk :: EnsureInit(void)
|
|||
#ifdef MOZ_ENABLE_XINERAMA
|
||||
// get the number of screens via xinerama
|
||||
XineramaScreenInfo *screenInfo;
|
||||
screenInfo = XineramaQueryScreens(GDK_DISPLAY(), &mNumScreens);
|
||||
if (XineramaIsActive(GDK_DISPLAY())) {
|
||||
screenInfo = XineramaQueryScreens(GDK_DISPLAY(), &mNumScreens);
|
||||
}
|
||||
else {
|
||||
screenInfo = NULL;
|
||||
mNumScreens = 1;
|
||||
}
|
||||
#else
|
||||
mNumScreens = 1;
|
||||
#endif
|
||||
|
|
|
@ -84,7 +84,13 @@ nsScreenManagerGtk :: EnsureInit(void)
|
|||
#ifdef MOZ_ENABLE_XINERAMA
|
||||
// get the number of screens via xinerama
|
||||
XineramaScreenInfo *screenInfo;
|
||||
screenInfo = XineramaQueryScreens(GDK_DISPLAY(), &mNumScreens);
|
||||
if (XineramaIsActive(GDK_DISPLAY())) {
|
||||
screenInfo = XineramaQueryScreens(GDK_DISPLAY(), &mNumScreens);
|
||||
}
|
||||
else {
|
||||
screenInfo = NULL;
|
||||
mNumScreens = 1;
|
||||
}
|
||||
#else
|
||||
mNumScreens = 1;
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче