You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launch the demo app (or any app using FlatLaf) in normal windowed mode (i.e. not maximized)
Drag the window by the title bar to the left or right edge of the screen
When you get the cue that it will maximize it vertically, let go
The window correctly repositions itself to be the full height and use the left or right half of the screen. On Linux, the restore button is now visible and does nothing when clicked. It should instead continue to maximize button as it does on Windows.
The issue appears to be in FlatTitlePane.frameStateChanged where it calculates the maximized variable. The value of frame.getExtendedState() is Frame.MAXIMIZED_VERT in this case. The check then comes back as true.
The resolution would be to change the check to == Frame.MAXIMIZED_BOTH instead of != 0.
It looks like Windows does not fire a frame state changed event in this case which is why it works as expected.
The text was updated successfully, but these errors were encountered:
Reproduction Steps
The window correctly repositions itself to be the full height and use the left or right half of the screen. On Linux, the restore button is now visible and does nothing when clicked. It should instead continue to maximize button as it does on Windows.
The issue appears to be in
FlatTitlePane.frameStateChanged
where it calculates themaximized
variable. The value offrame.getExtendedState()
isFrame.MAXIMIZED_VERT
in this case. The check then comes back as true.The resolution would be to change the check to
== Frame.MAXIMIZED_BOTH
instead of!= 0
.It looks like Windows does not fire a frame state changed event in this case which is why it works as expected.
The text was updated successfully, but these errors were encountered: