Skip to content
Permalink
Browse files

overlays visibility fix (#702)

  • Loading branch information
Manuel-777 committed Nov 10, 2019
1 parent 398a415 commit ffe65f22e3fd2acde0febbb16f2911ff90bc5cc0
Showing with 9 additions and 8 deletions.
  1. +9 −8 src/main.js
@@ -414,6 +414,7 @@ function updateOverlayVisibility() {
const shouldDisplayOverlay = settings.overlays.some(getOverlayVisible);
const isOverlayVisible = isEntireOverlayVisible();

//console.log("shouldDisplayOverlay: ", shouldDisplayOverlay, "isOverlayVisible: ", isOverlayVisible);
if (!shouldDisplayOverlay && isOverlayVisible) {
// hide entire overlay window
// Add a 1 second timeout for animations
@@ -424,15 +425,15 @@ function updateOverlayVisibility() {
// display entire overlay window
clearTimeout(overlayHideTimeout);
overlayHideTimeout = undefined;
}

const { bounds } =
electron.screen
.getAllDisplays()
.find(d => d.id == settings.overlay_display) ||
electron.screen.getPrimaryDisplay();
overlay.show();
overlay.setBounds(bounds);
const { bounds } =
electron.screen
.getAllDisplays()
.find(d => d.id == settings.overlay_display) ||
electron.screen.getPrimaryDisplay();
overlay.show();
overlay.setBounds(bounds);
}
}

function isEntireOverlayVisible() {

0 comments on commit ffe65f2

Please sign in to comment.
You can’t perform that action at this time.