Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Disable FlatLaf native decorations on windows #6570

Merged
merged 1 commit into from
Apr 29, 2021

Conversation

kingthorin
Copy link
Member

Native Decorations were causing various issues for me:

  • ZAP wouldn't start maximized.
  • Split pane dividers would drift noticeably between starts of ZAP.
  • The close button would sometimes be inaccessible.

See: JFormDesigner/FlatLaf#267 for further details.

Signed-off-by: kingthorin kingthorin@users.noreply.github.com

Native Decorations were causing various issues for me:
- ZAP wouldn't start maximized.
- Split pane dividers would drift noticeably between starts of ZAP.
- The close button would sometimes be inaccessible.

See: JFormDesigner/FlatLaf#267 for further
details.


Signed-off-by: kingthorin <kingthorin@users.noreply.github.com>
@thc202
Copy link
Member

thc202 commented Apr 29, 2021

It still worth checking if there's an issue in our code or in FlatLaf (or something in between).

@thc202
Copy link
Member

thc202 commented Apr 29, 2021

Well, that, if the features provided are wanted.

@thc202 thc202 merged commit a347420 into zaproxy:main Apr 29, 2021
@kingthorin kingthorin deleted the flatlaf-nativedec-disable branch April 29, 2021 13:22
@DevCharly
Copy link

Native Decorations were causing various issues for me:

  • ZAP wouldn't start maximized.
  • Split pane dividers would drift noticeably between starts of ZAP.
  • The close button would sometimes be inaccessible.

I've fixed an issue in FlatLaf related to starting maximized (for FlatLaf 1.2; coming soon).
It works now in ZAP with enabled native decorations.

Also the inaccessible close button should be fixed.
(if it still occurs in ZAP, please let me know)

Regarding the drifting split pane dividers:

  • when starting ZAP non-maximized, they are stable
  • when starting ZAP maximized, they drift

But not only in FlatLaf.
They drift also in other Lafs (e.g. Windows Laf).
Looks like an issue in ZAP with saving/restoring divider locations in maximized state.

If you want try out the latest FlatLaf build:
https://github.com/JFormDesigner/FlatLaf#snapshots

@kingthorin
Copy link
Member Author

Thanks @DevCharly!

@kingthorin kingthorin self-assigned this May 13, 2021
@kingthorin
Copy link
Member Author

Looks like 1.2 is now available: https://github.com/JFormDesigner/FlatLaf/releases I'll doing some testing and put together a PR.

@kingthorin
Copy link
Member Author

kingthorin commented May 21, 2021

I have verified that with 1.2 ZAP will start maximized and that the close button seems properly accessible (clickable). [With native decorations turned on.]

Sadly the drifting dividers does still happen. I haven't investigated where/if this is saved/restored.

To start with I'll just do a PR with the dependency update, but leaving the native decorations off until I can discuss the divider issue with someone.

@github-actions
Copy link

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

4 participants