violetlib/vaqua

Double-click on window title doesn't zoom the window when using unified toolbar

Closed this issue · 6 comments

Without the unified toolbar this feature works fine.

Oh no. The worst! :-)

More investigation... double-clicking the title text works, but double-clicking anywhere else in the title bar doesn't work.

Adding/removing this line of code is the only change required to break/fix this behaviour in my app:

getRootPane().putClientProperty("Aqua.windowStyle", "unifiedToolBar");

@cbfiddle heh. I'm running in Java 17... maybe you're on a different version?

@cbfiddle thank you for trying that out! I'm closing this. Not a VAqua problem :-D Thanks for your help.