This commit is contained in:
Ioannis Tsakpinis 2010-07-09 21:46:27 +00:00
parent b911005854
commit 351eca07a4
1 changed files with 9 additions and 7 deletions

View File

@ -1344,6 +1344,7 @@ final class LinuxDisplay implements DisplayImplementation {
}) == null )
throw new LWJGLException("Failed to apply Compiz LFS workaround.");
if ( state ) {
try {
// gconftool will not apply the workaround immediately, sleep a bit
// to make sure it will be ok when we create the window.
@ -1352,13 +1353,14 @@ final class LinuxDisplay implements DisplayImplementation {
e.printStackTrace();
}
}
}
};
} catch (IOException e) {
// Ignore
}
}
if ( provider != null && !provider.hasLegacyFullscreenSupport() ) { // No need to do anything is LFS is already enabled.
if ( provider != null && !provider.hasLegacyFullscreenSupport() ) { // No need to do anything if LFS is already enabled.
applyFix = true;
LWJGLUtil.log("Using " + providerName + " to apply Compiz LFS workaround.");
}