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

clientui: apply custom borders when maximizing #17529

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

aHooder
Copy link
Contributor

@aHooder aHooder commented Feb 26, 2024

Before the window is made visible, window state change events aren't guaranteed to be fired. This causes RuneLite's custom window chrome borders to not be removed when restoring a maximized window on client startup. It's fixed by manually reapplying borders when restoring the maximized window state for the "Remember client position" setting.

The state change event not being guaranteed when the window isn't visible is mentioned here: https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/Frame.html#setExtendedState(int)

I couldn't find any open issues about this.

Closes #17499

Before the window is made visible, window state change events aren't
guaranteed to be fired. This causes RuneLite's custom window chrome
borders to not be removed when restoring a maximized window on client
startup. It's fixed by manually reapplying borders when restoring the
maximized window state for the "Remember client position" setting.

The state change event not being guaranteed is mentioned here: https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/Frame.html#setExtendedState(int)
@aHooder
Copy link
Contributor Author

aHooder commented Feb 26, 2024

Here's a clip of the issue, first on runelite master, then with this PR. Thanks to @Jin-Jiyunsun

fixed.mp4

@aHooder
Copy link
Contributor Author

aHooder commented Feb 26, 2024

Closes #17499

@abextm abextm merged commit 6e98a61 into runelite:master Feb 26, 2024
1 check passed
@DevilTechniques
Copy link

How do we apply fix for this issue? doesn't seem to be working for me yet?

@Felanbird
Copy link
Contributor

How do we apply fix for this issue? doesn't seem to be working for me yet?

It will be fixed when the next version of RuneLite comes out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Grey line above taskbar
4 participants