Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8256465: [macos] Java frame and dialog presented full screen freeze application #3407

Closed
wants to merge 13 commits into from
@@ -126,7 +126,7 @@ private static native void nativeSetNSWindowStandardFrame(long nsWindowPtr,
public static final String WINDOW_FULL_CONTENT = "apple.awt.fullWindowContent";
public static final String WINDOW_TRANSPARENT_TITLE_BAR = "apple.awt.transparentTitleBar";
public static final String WINDOW_TITLE_VISIBLE = "apple.awt.windowTitleVisible";
public static boolean allowAutomaticWindowTabbing;
public static boolean allowMacOSAutomaticWindowTabbing;

// Yeah, I know. But it's easier to deal with ints from JNI
static final int MODELESS = 0;
@@ -194,11 +194,11 @@ static boolean IS(final int bits, final int mask) {
static {
AccessController.doPrivileged(
(PrivilegedAction<Object>) () -> {
allowAutomaticWindowTabbing = Boolean.parseBoolean(
System.getProperty("jdk.allowTabbedWindows"));
allowMacOSAutomaticWindowTabbing = Boolean.parseBoolean(
System.getProperty("jdk.allowMacOSTabbedWindows"));
trebari marked this conversation as resolved.
Show resolved Hide resolved
return null;
});
nativeSetAllowAutomaticTabbingProperty(allowAutomaticWindowTabbing);
nativeSetAllowAutomaticTabbingProperty(allowMacOSAutomaticWindowTabbing);
}

@SuppressWarnings({"unchecked", "rawtypes"})