Re: Undecorated-interactive stage style

2021-07-30 Thread Michael Strauß
It is true that a window with the UNDECORATED style will maximize to fill the entire screen. A window with the UNDECORATED_INTERACTIVE style is actually a regular window where the client area has been extended to include the non-client areas as well. As a consequence of this, the window behaves

Re: Undecorated-interactive stage style

2021-07-30 Thread Michael Strauß
2. From an implementation perspective, this doesn't need to be supported explicitly by a platform. For the move and resize behaviors, it uses existing com.sun.glass.ui.Window APIs like setSize and setPosition. I would imagine that these operations are no-ops for platforms that do not support

Re: Undecorated-interactive stage style

2021-07-30 Thread Dean Wookey
We would be very interested in this. We've tried to implement some of these native behaviours ourselves, but there are plenty of holes and we only support Windows. There are also some bugs which could potentially be addressed by this, for example https://bugs.openjdk.java.net/browse/JDK-810.

Re: Undecorated-interactive stage style

2021-07-30 Thread Kevin Rushforth
This looks interesting and useful. I'd like to hear from other developers as well. A few comments: 1. We might want to consider whether there is a better name (nothing comes to mind at the moment) 2. This will almost certainly need to be a ConditionalFeature (since it might not be

Undecorated-interactive stage style

2021-07-29 Thread Michael Strauß
I propose to add StageStyle.UNDECORATED_INTERACTIVE as outlined in this PR: https://github.com/openjdk/jfx/pull/594 The purpose of this style is to allow developers to provide custom window decorations, but retain the window behaviors that would be lost when using StageStyle.UNDECORATED. I'm