mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +00:00
6604044: java crashes talking to second X screen
Reviewed-by: prr
This commit is contained in:
parent
02e4fc676c
commit
3ea05e6a1a
@ -650,7 +650,7 @@ static void xinerama_init_linux()
|
||||
if (XineramaQueryScreens != NULL) {
|
||||
DTRACE_PRINTLN("calling XineramaQueryScreens func on Linux");
|
||||
xinInfo = (*XineramaQueryScreens)(awt_display, &locNumScr);
|
||||
if (xinInfo != NULL) {
|
||||
if (xinInfo != NULL && locNumScr > XScreenCount(awt_display)) {
|
||||
int32_t idx;
|
||||
DTRACE_PRINTLN("Enabling Xinerama support");
|
||||
usingXinerama = True;
|
||||
@ -701,7 +701,8 @@ static void xinerama_init_solaris()
|
||||
if (XineramaSolarisFunc != NULL) {
|
||||
DTRACE_PRINTLN("calling XineramaGetInfo func on Solaris");
|
||||
if ((*XineramaSolarisFunc)(awt_display, 0, &fbrects[0],
|
||||
&fbhints[0], &locNumScr) != 0)
|
||||
&fbhints[0], &locNumScr) != 0 &&
|
||||
locNumScr > XScreenCount(awt_display))
|
||||
{
|
||||
DTRACE_PRINTLN("Enabling Xinerama support");
|
||||
usingXinerama = True;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user