question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Window] WindowPlacement.Maximized makes undecorated window fullscreen

See original GitHub issue

Bug 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:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kirill-grouchnikovcommented, Jul 9, 2022

Indeed:

fun main() = application {
    Window(
        onCloseRequest = ::exitApplication,
        state = WindowState(placement = WindowPlacement.Maximized),
        undecorated = true
    ) { }
}

Shows the same issue - maximized treated as fullscreen

0reactions
kirill-grouchnikovcommented, Jul 9, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found