You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support setting the window dragging region with CSS #7408
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.
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.
Activity
SimonSapin commentedon Aug 29, 2015
Such CSS properties should be prefixed with
-servo-(to avoid name collisions with possible future standard properties) and not exposed to content, possibly by checkingstyle::parser::ParserContext::stylesheet_originin the parsing code. Or perhaps we need another mechanism for "internal" properties.paulrouget commentedon Sep 21, 2015
Relevant gecko patches (haven't landed in m-c): https://bugzilla.mozilla.org/show_bug.cgi?id=1070710
paulrouget commentedon Sep 22, 2015
This is what I tried to do:
window.setMovableByWindowBackground_(YES)NSViews where the window is not draggableNSViewwheremouseDownCanMoveWindowreturnsNOBut
mouseDownCanMoveWindowis never called. I don't know why.paulrouget commentedon Sep 22, 2015
Failing code: paulrouget/glutin@5b922d1
paulrouget commentedon Jun 6, 2018
This is not standard and not necessary anymore. Closing.