modules/graphics/src/main/java/com/sun/javafx/tk/quantum/GlassWindowEventHandler.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 27,36 ****
--- 27,37 ----
import com.sun.glass.events.WindowEvent;
import com.sun.glass.ui.Application;
import com.sun.glass.ui.Screen;
import com.sun.glass.ui.Window;
+ import com.sun.glass.ui.Window.Level;
import com.sun.javafx.tk.FocusCause;
import java.security.AccessControlContext;
import java.security.AccessController;
*** 120,129 ****
--- 121,135 ----
}
return null;
}
@Override
+ public void handleLevelEvent(int level) {
+ stage.stageListener.changedAlwaysOnTop(level != Level.NORMAL);
+ }
+
+ @Override
public void handleWindowEvent(final Window window, final long time, final int type) {
this.window = window;
this.type = type;
AccessControlContext acc = stage.getAccessControlContext();