Integrated: 8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window

Marius Hanl mhanl at openjdk.org
Wed Jul 3 09:20:29 UTC 2024


On Mon, 26 Feb 2024 20:51:56 GMT, Marius Hanl <mhanl at openjdk.org> wrote:

> This PR fixes the problem that maximizing/fullscreen a `Stage` or `Dialog` is broken when `sizeToScene()` was called before or after.
> 
> The approach here is to ignore the `sizeToScene()` request when the `Stage` is maximized or set to fullscreen. 
> Otherwise the Window Manager of the OS will be confused and you will get weird flickering or wrong Window buttons (e.g. on Windows, the 'Maximize' button still shows the 'Restore' Icon, while we already resized the `Stage` to not be maximized).

This pull request has now been integrated.

Changeset: 5656b80f
Author:    Marius Hanl <mhanl at openjdk.org>
URL:       https://git.openjdk.org/jfx/commit/5656b80f8a584a2d4d791f9fab83f1719b29f986
Stats:     300 lines in 3 files changed: 299 ins; 0 del; 1 mod

8326619: Stage.sizeToScene() on maximized/fullscreen Stage breaks the Window

Reviewed-by: lkostyra, kcr

-------------

PR: https://git.openjdk.org/jfx/pull/1382


More information about the openjfx-dev mailing list