hyperterm-overlay
hyperterm-overlay copied to clipboard
Show Hyper on top of fullscreen apps
Setting win.setAlwaysOnTop
to true is not enough to allow Hyper to show up on top of full screen apps. We need to pass in the optional 'level' parameter.
Looking at BrowserWindow docs, the screen
(only) parameter not exists for setAlwaysOnTop
.
https://electron.atom.io/docs/api/browser-window/#winsetalwaysontopflag-level-relativelevel
Bump! Would really love to see this!
FWIW I will gladly help make any needed changes to get this merged
I read an article that said passing screen
would do the trick, but looks like its not on the official documentation. I haven't been able to look into other parameters that would accomplish this, though it seemed to be fine during development...
FWIW The following fixed it for me:
if ( this._config.alwaysOnTop && ! this._config.primaryDisplay ) {
this._app.dock.hide();
win.setVisibleOnAllWorkspaces(true);
win.setFullScreenable(false);
}
@shadyvb I made this fix to my overlay.js. However, there is a small gap between the top of the screen and the top of the hyper window when using hyper-overlay over a full screen app. The gap size is the same size of the topbar in osx. Is their a way to conditionally push up the hyper window when displaying it over fullscreen apps?
Unfortunately I've been having the same, and it even extends to the first line or two in the terminal, very annoying when you try copying stuff from those first couple of lines. A small price to pay to get all the awesomeness I guess!
It was bothering me so I pinned the hyper window to the bottom of my screen. No top bar to contend with.
Nice! Never thought of that!