Skip to content

.set_kiosk(True) not workin on macOS #37

Open

Description

@rxlxnd

when using webview on macos with webui, there is no difference between

my_window.set_kiosk(True) # Enable Kiosk mode
and
my_window.set_kiosk(False) # Disable Kiosk mode

I would have assumed that my_window.set_kiosk(True) would disable the hover effect when the mouse is in the menu bar area, which makes turn grey.

Maybe NSWindowStyleMaskBorderless should be used when kiosk is set to true (with Webview on macos and set_kiosk(true))?
https://developer.apple.com/documentation/appkit/nswindow/stylemask-swift.struct/borderless?language=objc

Activity

  1. AlbertShown commented on Jun 12, 2025

    @AlbertShown
    Member

    The kiosk mode is only for web browser window, it makes it full screen.
    If you want to hide the window borders you will need to use WebView and webui_set_frameless() option, please check this example in C.

    Please keep in mind that webui_set_frameless() still in Beta, so it's not implemented yet in Python wrapper.

    screenshot

  2. AlbertShown commented on Jun 12, 2025

    @AlbertShown
    Member

    Anyone can add those missing C APIs including webui_set_frameless() in webui.py, simply adding a proper Python new method .set_frameless() that calls webui_set_frameless().

    PR are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions