question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Frameless windows

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:21 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
r0x0rcommented, Sep 23, 2018

I have added Windows support feat. full window easy drag

2reactions
Fizzadarcommented, Feb 14, 2018

Agreed re:drag stuff, I wanted to replicate native “top section drags” as much as possible, hence the bar! @r0x0r PR added 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found