diff --git a/lib/browser.js b/lib/browser.js index 47e23f7..7dba4c4 100644 --- a/lib/browser.js +++ b/lib/browser.js @@ -17,7 +17,15 @@ const minimize = () => void BrowserWindow.getFocusedWindow().minimize(); const close = () => void BrowserWindow.getFocusedWindow().close(); +const clickthrough = () => { + const window = BrowserWindow.getFocusedWindow(); + + window.setIgnoreMouseEvents(true); + window.setAlwaysOnTop(true); + window.setOpacity(0.5); +}; + module.exports = isomorphic({ name, - implementation: { close, minimize, maximizeToggle } + implementation: { close, minimize, maximizeToggle, clickthrough } });