[Window] WindowPlacement.Maximized makes undecorated window fullscreen
See original GitHub issueBug Description
On an undecorated window, using WindowPlacement.Maximized
makes the the window fullscreen, when it should be maximised.
Reproducer
fun main() = auroraApplication {
AuroraWindow(
skin = geminiSkin(),
onCloseRequest = ::exitApplication,
state = WindowState(placement = WindowPlacement.Maximized),
undecorated = true
) { }
}
Actual Result:
The window becomes fullscreen.
Expected Result:
The window should be maximised (staying above the taskbar).
Platform Info
Aurora Version: Tested on both 1.1.0 & 1.2-SNAPSHOT
Operating System: Windows 11
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Undecorated windows in maximized mode overlap ... - GitHub
Running on Windows (all versions of Java) will have this undecorated window go to fullscreen mode (over the taskbar) when maximized checkbox is ......
Read more >Undecorated window covers ENTIRE screen - Stack Overflow
I want to create an application with a custom title bar (the one with the buttons for minimize, full-screen mode, and close) which...
Read more >Window guide - GLFW
This hint is ignored for full screen and undecorated windows. GLFW_VISIBLE specifies whether the windowed mode window will be initially visible.
Read more >How to start gVim maximized? - Super User
Compiz Config Settings Manager -> Place Windows -> Fixed Window Placement -> Windows with fixed placement mode -> new. Windows class=Gvim Mode Maximize....
Read more >Gtk.Window - Classes - Gtk 3.0
Creates a new Gtk.Window , which is a toplevel window that can contain other widgets. ... If you simply want an undecorated window...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Indeed:
Shows the same issue - maximized treated as fullscreen
I’m not even sure that I can work around this without causing an extra frame of flicker from fullscreen to maximized mode on initialization. Probably the safest (but a bit cumbersome) is to use the code suggested on that second issue.