Skip to content

Commit c1934ab

Browse files
committed
add possibility to overwrite resizable window management
1 parent 352d848 commit c1934ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ const xml = require("xml2js");
66
const net = require('net');
77
const WebSocket = require('ws');
88

9+
// In some cases we need to make the WLgate window resizable (for example for tiling window managers)
10+
// Default: false
11+
const resizable = process.env.WLGATE_RESIZABLE === 'true' || false;
12+
913
const gotTheLock = app.requestSingleInstanceLock();
1014

1115
let powerSaveBlockerId;
@@ -47,7 +51,7 @@ function createWindow () {
4751
const mainWindow = new BrowserWindow({
4852
width: 430,
4953
height: 250,
50-
resizable: false,
54+
resizable: resizable, // Default: false, can be overwritten with WLGATE_RESIZABLE
5155
autoHideMenuBar: app.isPackaged,
5256
webPreferences: {
5357
contextIsolation: false,

0 commit comments

Comments
 (0)