From 1b834fe2c78c1e5feac9848be7f96fc442cee2bc Mon Sep 17 00:00:00 2001 From: bingenito Date: Fri, 15 Mar 2019 13:31:09 -0400 Subject: [PATCH] Disable OpenFin window frame whenever enabled. Fixes #225 --- packages/desktopjs/src/window.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/desktopjs/src/window.ts b/packages/desktopjs/src/window.ts index 4f7eae37..70324180 100644 --- a/packages/desktopjs/src/window.ts +++ b/packages/desktopjs/src/window.ts @@ -424,6 +424,7 @@ export class SnapAssistWindowManager extends GroupWindowManager { if (isOpenFin()) { // OpenFin moved handler win.addListener("disabled-frame-bounds-changed", () => this.onMoved(win)); + win.addListener("frame-enabled", () => win.innerWindow.disableFrame()); } else { // Electron windows specific moved handler if (win.innerWindow && win.innerWindow.hookWindowMessage) {