8155083: On Windows, usage of USER_ATTENTION_WINDOW depends on state setting order
Reviewed-by: serb, ssadetsky
This commit is contained in:
parent
be6bc336c7
commit
539151b477
@ -273,9 +273,7 @@ public class Taskbar {
|
||||
}
|
||||
|
||||
/**
|
||||
* Requests user attention to the specified window until it is activated.
|
||||
*
|
||||
* On an already active window requesting attention does nothing.
|
||||
* Requests user attention to the specified window.
|
||||
*
|
||||
* @param w window
|
||||
* @throws SecurityException if a security manager exists and it denies the
|
||||
|
@ -49,9 +49,7 @@ public interface TaskbarPeer {
|
||||
default void requestUserAttention(boolean enabled, final boolean critical) {}
|
||||
|
||||
/**
|
||||
* Requests user attention to the specified window until it is activated.
|
||||
*
|
||||
* On an already active window requesting attention does nothing.
|
||||
* Requests user attention to the specified window.
|
||||
*
|
||||
* @param w window
|
||||
*/
|
||||
|
@ -108,7 +108,7 @@ JNIEXPORT void JNICALL Java_sun_awt_windows_WTaskbarPeer_setProgressState
|
||||
JNIEXPORT void JNICALL Java_sun_awt_windows_WTaskbarPeer_flashWindow
|
||||
(JNIEnv *, jobject, jlong window)
|
||||
{
|
||||
AwtWindow::FlashWindowEx((HWND) window, 3, 0, FLASHW_TIMERNOFG);
|
||||
::FlashWindow((HWND) window, TRUE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user