Skip to content

Support setting the window dragging region with CSS #7408

Closed

Description

@paulrouget

Glutin allows decoration-less windows. We can paint where the titlebar is supposed to be displayed by the OS, and then build our own titlebar (thinking of browser.html here).

But we need to be able to tell the OS what region of the UI is draggable.

The equivalent of -webkit-app-region: drag and -moz-window-dragging: drag;. See gecko implementation.

Activity

  1. added
    A-content/css
    on Aug 27, 2015
  2. SimonSapin commented on Aug 29, 2015

    @SimonSapin
    Member

    Such CSS properties should be prefixed with -servo- (to avoid name collisions with possible future standard properties) and not exposed to content, possibly by checking style::parser::ParserContext::stylesheet_origin in the parsing code. Or perhaps we need another mechanism for "internal" properties.

  3. paulrouget commented on Sep 21, 2015

    @paulrouget
    ContributorAuthor
  4. paulrouget commented on Sep 22, 2015

    @paulrouget
    ContributorAuthor

    This is what I tried to do:

    • window.setMovableByWindowBackground_(YES)
    • add NSViews where the window is not draggable
    • these views are subclasses of NSView where mouseDownCanMoveWindow returns NO

    But mouseDownCanMoveWindow is never called. I don't know why.

  5. paulrouget commented on Sep 22, 2015

    @paulrouget
    ContributorAuthor
  6. paulrouget commented on Jun 6, 2018

    @paulrouget
    ContributorAuthor

    This is not standard and not necessary anymore. Closing.

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

    A-content/cssA-platform/utils

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions