Electron: Programmatically set BrowserWindow frame property

Created on 2 Mar 2016  ·  3Comments  ·  Source: electron/electron

I want to programmatically set the BrowserWindow's frame property _after_ the window has already been created.

For example:

var win = new electron.BrowserWindow({ frame: true })
// ... some time goes by
win.setFrame(false)
// ... some time goes by
win.setFrame(true)

Is there any way to do this with electron? Can we add this?

Most helpful comment

It is possible on OS X. Any chance it could be added just for OS X, like the other OS X specific frame features?

All 3 comments

No, it is not possible on most platforms.

It is possible on OS X. Any chance it could be added just for OS X, like the other OS X specific frame features?

+1, QuickTime does this. It would be beneficial for video playback apps being built in Electron.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sindresorhus picture sindresorhus  ·  3Comments

etiktin picture etiktin  ·  3Comments

tenry92 picture tenry92  ·  3Comments

christiangenco picture christiangenco  ·  3Comments

tengyifei picture tengyifei  ·  3Comments