Frameless windows
See original GitHub issueI’m trying to implement a frameless window (on MacOS w/pyobjc
but ideally this would be possible everywhere, I think electron does it everywhere).
Getting the titlebar transparent and the content to fill the whole window is pretty simple with:
window_mask = window_mask | AppKit.NSFullSizeContentViewWindowMask
...
self.window.setTitlebarAppearsTransparent_(True)
self.window.setTitleVisibility_(AppKit.NSWindowTitleHidden)
However, the frameless window cannot be dragged about because even the very top is covered by the WebView
- as dragging the mouse moves this into text selection mode. Electron’s solution is a Chrome-specific (annoying) -webkit-app-regon: drag
CSS selector.
My thinking is it might be possible to achieve this by drawing a transparent box over the top X pixels of the NSWindow
and making that draggable (using setMovableByWindowBackground_(True)
).
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (18 by maintainers)
Top Results From Across the Web
Frameless Windows at Lowes.com
Picture windows are rectangular, non-opening windows that give a room added light while providing an unobstructed view of the scenery outside. Casement windows...
Read more >Frameless - Windows - Doors & Windows - The Home Depot
Get free shipping on qualified Frameless Windows products or Buy Online Pick Up in Store today in the Doors & Windows Department.
Read more >Framed VS Frameless Windows – Which are Better?
A frameless window is exactly how it is described – a seamless glazing option which has no obvious frame around the perimeter. As...
Read more >Frameless glass windows - Architonic
Designer WINDOW TYPES FRAMELESS GLASS WINDOWS from international manufacturers ✓ detailled info ✓ high-resolution images ✓ CADs ✓ catalogues ✓..
Read more >RV Frameless Windows - RecPro
Our frameless RV windows offer a heavy-duty construction that helps them withstand heavy use and the test of time. The glass of our...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have added Windows support feat. full window easy drag
Agreed re:drag stuff, I wanted to replicate native “top section drags” as much as possible, hence the bar! @r0x0r PR added 😃