Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
9503471c
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
9503471c
编写于
9月 23, 2014
作者:
S
serb
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8041734: JFrame in full screen mode leaves empty workspace after close
Reviewed-by: azvegint, alexsch
上级
dc143cf0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
38 addition
and
0 deletion
+38
-0
src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
+3
-0
src/macosx/classes/sun/lwawt/macosx/CWrapper.java
src/macosx/classes/sun/lwawt/macosx/CWrapper.java
+18
-0
src/macosx/native/sun/awt/CWrapper.m
src/macosx/native/sun/awt/CWrapper.m
+17
-0
未找到文件。
src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
浏览文件 @
9503471c
...
@@ -568,7 +568,10 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
...
@@ -568,7 +568,10 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
CWrapper
.
NSWindow
.
makeKeyWindow
(
nsWindowPtr
);
CWrapper
.
NSWindow
.
makeKeyWindow
(
nsWindowPtr
);
}
}
}
else
{
}
else
{
// immediately hide the window
CWrapper
.
NSWindow
.
orderOut
(
nsWindowPtr
);
CWrapper
.
NSWindow
.
orderOut
(
nsWindowPtr
);
// process the close
CWrapper
.
NSWindow
.
close
(
nsWindowPtr
);
}
}
}
else
{
}
else
{
// otherwise, put it in a proper z-order
// otherwise, put it in a proper z-order
...
...
src/macosx/classes/sun/lwawt/macosx/CWrapper.java
浏览文件 @
9503471c
...
@@ -54,8 +54,26 @@ final class CWrapper {
...
@@ -54,8 +54,26 @@ final class CWrapper {
static
native
void
orderFront
(
long
window
);
static
native
void
orderFront
(
long
window
);
static
native
void
orderFrontRegardless
(
long
window
);
static
native
void
orderFrontRegardless
(
long
window
);
static
native
void
orderWindow
(
long
window
,
int
ordered
,
long
relativeTo
);
static
native
void
orderWindow
(
long
window
,
int
ordered
,
long
relativeTo
);
/**
* Removes the window from the screen.
*
* @param window the pointer of the NSWindow
*/
static
native
void
orderOut
(
long
window
);
static
native
void
orderOut
(
long
window
);
/**
* Removes the window from the screen and releases it. According to
* documentation this method should be similar to {@link #orderOut},
* because we use ReleasedWhenClosed:NO, so the window shouldn't be
* released. But the close method works differently, for example it
* close the space if the window was in the full screen via
* {@link CPlatformWindow#toggleFullScreen()}.
*
* @param window the pointer of the NSWindow
*/
static
native
void
close
(
long
window
);
static
native
void
addChildWindow
(
long
parent
,
long
child
,
int
ordered
);
static
native
void
addChildWindow
(
long
parent
,
long
child
,
int
ordered
);
static
native
void
removeChildWindow
(
long
parent
,
long
child
);
static
native
void
removeChildWindow
(
long
parent
,
long
child
);
...
...
src/macosx/native/sun/awt/CWrapper.m
浏览文件 @
9503471c
...
@@ -173,6 +173,23 @@ JNF_COCOA_ENTER(env);
...
@@ -173,6 +173,23 @@ JNF_COCOA_ENTER(env);
JNF_COCOA_EXIT(env);
JNF_COCOA_EXIT(env);
}
}
/*
* Class: sun_lwawt_macosx_CWrapper$NSWindow
* Method: close
* Signature: (J)V
*/
JNIEXPORT void JNICALL
Java_sun_lwawt_macosx_CWrapper_00024NSWindow_close
(JNIEnv *env, jclass cls, jlong windowPtr)
{
JNF_COCOA_ENTER(env);
NSWindow *window = (NSWindow *)jlong_to_ptr(windowPtr);
[ThreadUtilities performOnMainThreadWaiting:NO block:^(){
[window close];
}];
JNF_COCOA_EXIT(env);
}
/*
/*
* Class: sun_lwawt_macosx_CWrapper$NSWindow
* Class: sun_lwawt_macosx_CWrapper$NSWindow
* Method: orderFrontRegardless
* Method: orderFrontRegardless
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录