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.
|
||||
*/
|
||||
xinerama_active = XineramaIsActive(d->getXDisplay());
|
||||
if (xinerama_active) {
|
||||
/*
|
||||
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
|
||||
why no screen number is used in this function call. There should never
|
||||
be more than one screen present with Xinerama active.
|
||||
present. We still, of course, want to use the screen class, but that
|
||||
is why no screen number is used in this function call. There should
|
||||
never be more than one screen present with Xinerama active.
|
||||
*/
|
||||
int num;
|
||||
XineramaScreenInfo *info = XineramaQueryScreens(d->getXDisplay(), &num);
|
||||
|
@ -510,5 +511,6 @@ ScreenInfo::ScreenInfo(BaseDisplay *d, unsigned int num) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // XINERAMA
|
||||
}
|
||||
|
|
|
@ -2093,7 +2093,7 @@ void BScreen::updateAvailableArea(void) {
|
|||
#ifdef XINERAMA
|
||||
// reset to the full areas
|
||||
if (isXineramaActive())
|
||||
xineramaUsableArea = allAvailableAreas();
|
||||
xineramaUsableArea = getXineramaAreas();
|
||||
#endif // XINERAMA
|
||||
|
||||
/* these values represent offsets from the screen edge
|
||||
|
|
Loading…
Reference in a new issue