Skip to content

Commit

Permalink
Allow it to work like an overlay over fullscreen bois
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Mar 8, 2019
1 parent 3e15d33 commit 49d6606
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions main.js
Expand Up @@ -42,14 +42,21 @@ function showNotes () {
}

app.on("ready", () => {
app.dock.hide()

window = new BrowserWindow({
width: 800,
height: 100,
frame: false,
resizable: false,
show: false
show: false,
titleBarStyle: "customButtonsOnHover",
frame: false
})

window.setAlwaysOnTop(true, "floating")
window.setVisibleOnAllWorkspaces(true)
window.setFullScreenable(false)

window.webContents.on("before-input-event", (event, input) => {
if (input.key == "Enter" || input.key == "Escape") {
window.hide()
Expand Down

0 comments on commit 49d6606

Please sign in to comment.