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,12 +1344,14 @@ final class LinuxDisplay implements DisplayImplementation {
}) == null ) }) == null )
throw new LWJGLException("Failed to apply Compiz LFS workaround."); throw new LWJGLException("Failed to apply Compiz LFS workaround.");
try { if ( state ) {
// gconftool will not apply the workaround immediately, sleep a bit try {
// to make sure it will be ok when we create the window. // gconftool will not apply the workaround immediately, sleep a bit
Thread.sleep(200); // 100 is too low, 150 works, set to 200 to be safe. // to make sure it will be ok when we create the window.
} catch (InterruptedException e) { Thread.sleep(200); // 100 is too low, 150 works, set to 200 to be safe.
e.printStackTrace(); } catch (InterruptedException e) {
e.printStackTrace();
}
} }
} }
}; };
@ -1358,7 +1360,7 @@ final class LinuxDisplay implements DisplayImplementation {
} }
} }
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; applyFix = true;
LWJGLUtil.log("Using " + providerName + " to apply Compiz LFS workaround."); LWJGLUtil.log("Using " + providerName + " to apply Compiz LFS workaround.");
} }