8155083: On Windows, usage of USER_ATTENTION_WINDOW depends on state setting order

Reviewed-by: serb, ssadetsky
This commit is contained in:
Alexander Zvegintsev 2016-09-06 13:03:00 +03:00
parent be6bc336c7
commit 539151b477
3 changed files with 3 additions and 7 deletions

View File

@ -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

View File

@ -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
*/

View File

@ -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);
}
/*