mod: changed closeRequested to follow isMinimized()

This commit is contained in:
Brian Matzon 2003-02-09 17:55:30 +00:00
parent c022100cab
commit b46242760d
1 changed files with 10 additions and 1 deletions

View File

@ -59,7 +59,7 @@ public final class Display {
private static int handle;
/** Whether or not the display has been requested to shutdown by the user */
public static boolean closeRequested = false;
private static boolean closeRequested = false;
/**
* No construction allowed.
@ -217,4 +217,13 @@ public final class Display {
* @return true if the display is minimized
*/
public static native boolean isMinimized();
/**
* Determines if the user has requested that the application should close.
*
* @return true if the user has requested that the application should close
*/
public static boolean isCloseRequested() {
return closeRequested;
}
}