get the right rects for the xinerama regions
This commit is contained in:
parent
f7122039db
commit
9fe6b282c0
2 changed files with 16 additions and 14 deletions
|
@ -493,11 +493,12 @@ ScreenInfo::ScreenInfo(BaseDisplay *d, unsigned int num) {
|
||||||
on a pre-screen basis anyways.
|
on a pre-screen basis anyways.
|
||||||
*/
|
*/
|
||||||
xinerama_active = XineramaIsActive(d->getXDisplay());
|
xinerama_active = XineramaIsActive(d->getXDisplay());
|
||||||
|
if (xinerama_active) {
|
||||||
/*
|
/*
|
||||||
If Xinerama is being used, there there is only going to be one screen
|
If Xinerama is being used, there there is only going to be one screen
|
||||||
present. We still, of course, want to use the screen class, but that is
|
present. We still, of course, want to use the screen class, but that
|
||||||
why no screen number is used in this function call. There should never
|
is why no screen number is used in this function call. There should
|
||||||
be more than one screen present with Xinerama active.
|
never be more than one screen present with Xinerama active.
|
||||||
*/
|
*/
|
||||||
int num;
|
int num;
|
||||||
XineramaScreenInfo *info = XineramaQueryScreens(d->getXDisplay(), &num);
|
XineramaScreenInfo *info = XineramaQueryScreens(d->getXDisplay(), &num);
|
||||||
|
@ -510,5 +511,6 @@ ScreenInfo::ScreenInfo(BaseDisplay *d, unsigned int num) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif // XINERAMA
|
#endif // XINERAMA
|
||||||
}
|
}
|
||||||
|
|
|
@ -2093,7 +2093,7 @@ void BScreen::updateAvailableArea(void) {
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
// reset to the full areas
|
// reset to the full areas
|
||||||
if (isXineramaActive())
|
if (isXineramaActive())
|
||||||
xineramaUsableArea = allAvailableAreas();
|
xineramaUsableArea = getXineramaAreas();
|
||||||
#endif // XINERAMA
|
#endif // XINERAMA
|
||||||
|
|
||||||
/* these values represent offsets from the screen edge
|
/* these values represent offsets from the screen edge
|
||||||
|
|
Loading…
Reference in a new issue