mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 21:33:43 +00:00
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:
parent
064ee0ca23
commit
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
|
||||
|
Loading…
Reference in New Issue
Block a user