Skip to content

Improvements to Maximize / Fullscreen #8907

Open
@dyi1

Description

@dyi1

Feature Description

See the various things I've tried below. To summarize a TLDR, I'd like to know if

  1. It's possible to create a maximized window that would also cover over the OS menubar without going into fullscreen mode.
  2. When in maximize true and no-frame -> I am not able to get the window size?
  3. setWindowPositon(0,0) and setWindowSize(windowLength, windowWidth) and no-frame(true) leaves a gap in the top where the titleBar of the window would normally be.

Product Impact

For context, I am using slint to try to build a screenshot application, so I need to create a transparent window over the entire screen of my computer. Here are some things I've tried.

  1. Use fully screen mode.
  • this doesn't work for macOS as on fullscreen mode it creates a new desktop. So I can't see the things I actually want to screenshot over.
  1. Use maximize(true) and no-frame(true)
  • This gets me 95% of the way there. However, one bug I run into is that the menu bar of the operating system (macOS) is not part of it. So when I use other programs to try to do a screen capture, I need to do some math to determine how much of the title bar I need to exclude as the window isn't rendered on top.

  • [Bug] The problem here is that when maximized, I don't have the actual size of the window. When I get the window size, it returns (0,0).

  1. Use setWindowPositon(0,0) and setWindowSize(windowLength, windowWidth) and no-frame(true)
  • Doesn't work. For some reason even with no-frame(true), the there's a gap at the top for where the title bar would normally be.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need triagingIssue that the owner of the area still need to triage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions