Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
c9ed7b88
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看板
提交
c9ed7b88
编写于
4月 20, 2009
作者:
D
dcherepanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6770457: Using ToolTips causes inactive app window to exhibit active window behavior
Reviewed-by: art, ant
上级
4dcf26c2
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
16 addition
and
27 deletion
+16
-27
src/windows/native/sun/windows/awt_Component.cpp
src/windows/native/sun/windows/awt_Component.cpp
+6
-1
src/windows/native/sun/windows/awt_Window.cpp
src/windows/native/sun/windows/awt_Window.cpp
+10
-25
src/windows/native/sun/windows/awt_Window.h
src/windows/native/sun/windows/awt_Window.h
+0
-1
未找到文件。
src/windows/native/sun/windows/awt_Component.cpp
浏览文件 @
c9ed7b88
...
...
@@ -1843,8 +1843,13 @@ LRESULT AwtComponent::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
case
WM_AWT_SETALWAYSONTOP
:
{
AwtWindow
*
w
=
(
AwtWindow
*
)
lParam
;
BOOL
value
=
(
BOOL
)
wParam
;
UINT
flags
=
SWP_NOMOVE
|
SWP_NOSIZE
;
// transient windows shouldn't change the owner window's position in the z-order
if
(
w
->
IsRetainingHierarchyZOrder
())
{
flags
|=
SWP_NOOWNERZORDER
;
}
::
SetWindowPos
(
w
->
GetHWnd
(),
(
value
!=
0
?
HWND_TOPMOST
:
HWND_NOTOPMOST
),
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
);
0
,
0
,
0
,
0
,
flags
);
break
;
}
...
...
src/windows/native/sun/windows/awt_Window.cpp
浏览文件 @
c9ed7b88
...
...
@@ -165,7 +165,6 @@ jmethodID AwtWindow::calculateSecurityWarningPositionMID;
int
AwtWindow
::
ms_instanceCounter
=
0
;
HHOOK
AwtWindow
::
ms_hCBTFilter
;
AwtWindow
*
AwtWindow
::
m_grabbedWindow
=
NULL
;
HWND
AwtWindow
::
sm_retainingHierarchyZOrderInShow
=
NULL
;
BOOL
AwtWindow
::
sm_resizing
=
FALSE
;
UINT
AwtWindow
::
untrustedWindowsCounter
=
0
;
...
...
@@ -341,23 +340,6 @@ MsgRouting AwtWindow::WmNcMouseDown(WPARAM hitTest, int x, int y, int button) {
}
MsgRouting
AwtWindow
::
WmWindowPosChanging
(
LPARAM
windowPos
)
{
/*
* See 6178004.
* Some windows shouldn't trigger a change in z-order of
* any window from the hierarchy.
*/
if
(
IsRetainingHierarchyZOrder
())
{
if
(((
WINDOWPOS
*
)
windowPos
)
->
flags
&
SWP_SHOWWINDOW
)
{
sm_retainingHierarchyZOrderInShow
=
GetHWnd
();
}
}
else
if
(
sm_retainingHierarchyZOrderInShow
!=
NULL
)
{
HWND
ancestor
=
::
GetAncestor
(
sm_retainingHierarchyZOrderInShow
,
GA_ROOTOWNER
);
HWND
windowAncestor
=
::
GetAncestor
(
GetHWnd
(),
GA_ROOTOWNER
);
if
(
windowAncestor
==
ancestor
)
{
((
WINDOWPOS
*
)
windowPos
)
->
flags
|=
SWP_NOZORDER
;
}
}
return
mrDoDefault
;
}
...
...
@@ -377,12 +359,6 @@ void AwtWindow::RepositionSecurityWarning(JNIEnv *env)
MsgRouting
AwtWindow
::
WmWindowPosChanged
(
LPARAM
windowPos
)
{
WINDOWPOS
*
wp
=
(
WINDOWPOS
*
)
windowPos
;
if
(
IsRetainingHierarchyZOrder
()
&&
wp
->
flags
&
SWP_SHOWWINDOW
)
{
// By this time all the windows from the hierarchy are already notified about z-order change.
// Thus we may and we should reset the trigger in order not to affect other changes.
sm_retainingHierarchyZOrderInShow
=
NULL
;
}
// Reposition the warning window
if
(
IsUntrusted
()
&&
warningWindow
!=
NULL
)
{
if
(
wp
->
flags
&
SWP_HIDEWINDOW
)
{
...
...
@@ -1251,8 +1227,17 @@ void AwtWindow::Show()
}
}
if
(
!
done
)
{
// transient windows shouldn't change the owner window's position in the z-order
if
(
IsRetainingHierarchyZOrder
()){
UINT
flags
=
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_SHOWWINDOW
|
SWP_NOOWNERZORDER
;
if
(
nCmdShow
==
SW_SHOWNA
)
{
flags
|=
SWP_NOACTIVATE
;
}
::
SetWindowPos
(
GetHWnd
(),
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
flags
);
}
else
{
::
ShowWindow
(
GetHWnd
(),
nCmdShow
);
}
}
env
->
DeleteLocalRef
(
target
);
}
...
...
src/windows/native/sun/windows/awt_Window.h
浏览文件 @
c9ed7b88
...
...
@@ -248,7 +248,6 @@ private:
static
int
ms_instanceCounter
;
static
HHOOK
ms_hCBTFilter
;
static
LRESULT
CALLBACK
CBTFilter
(
int
nCode
,
WPARAM
wParam
,
LPARAM
lParam
);
static
HWND
sm_retainingHierarchyZOrderInShow
;
// a referred window in the process of show
static
BOOL
sm_resizing
;
/* in the middle of a resizing operation */
RECT
m_insets
;
/* a cache of the insets being used */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录