mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-21 15:55:15 +00:00
7022113: Security icon can be moved behind the window using the com.sun.SecurityWarning.setPosition() method
Reviewed-by: art, dcherepanov
This commit is contained in:
parent
80da503482
commit
a2a420e7de
@ -355,7 +355,7 @@ void AwtWindow::RepositionSecurityWarning(JNIEnv *env)
|
||||
RECT rect;
|
||||
CalculateWarningWindowBounds(env, &rect);
|
||||
|
||||
::SetWindowPos(warningWindow, IsAlwaysOnTop() ? HWND_TOPMOST : GetHWnd(),
|
||||
::SetWindowPos(warningWindow, IsAlwaysOnTop() ? HWND_TOPMOST : HWND_NOTOPMOST,
|
||||
rect.left, rect.top,
|
||||
rect.right - rect.left, rect.bottom - rect.top,
|
||||
SWP_ASYNCWINDOWPOS | SWP_NOACTIVATE |
|
||||
@ -835,7 +835,7 @@ void AwtWindow::StartSecurityAnimation(AnimationKind kind)
|
||||
|
||||
if (securityAnimationKind == akShow) {
|
||||
::SetWindowPos(warningWindow,
|
||||
IsAlwaysOnTop() ? HWND_TOPMOST : GetHWnd(),
|
||||
IsAlwaysOnTop() ? HWND_TOPMOST : HWND_NOTOPMOST,
|
||||
0, 0, 0, 0,
|
||||
SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE |
|
||||
SWP_SHOWWINDOW | SWP_NOOWNERZORDER);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user