diff options
Diffstat (limited to 'resizable.patch')
-rw-r--r-- | resizable.patch | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/resizable.patch b/resizable.patch index caee605aca35..87740cc189e4 100644 --- a/resizable.patch +++ b/resizable.patch @@ -1,7 +1,7 @@ From 1b9c595b86b122c51efc29c21cd2ca805c7503d1 Mon Sep 17 00:00:00 2001 From: morguldir <morguldir@protonmail.com> Date: Sat, 2 Nov 2019 21:33:32 +0100 -Subject: [PATCH] Set resizable to false again +Subject: [PATCH 1/2] Set resizable to false again It already is resizable by using the scale factor, and it messes up my i3wm system because then it automatically changes the @@ -27,3 +27,27 @@ index c5a5739..6a55ea5 100644 'fullscreenable': false, 'alwaysOnTop': true }); + +From cfde457957d149e7d230d29efd594d57ba54ecac Mon Sep 17 00:00:00 2001 +From: morguldir <morguldir@protonmail.com> +Date: Mon, 4 Nov 2019 21:45:06 +0100 +Subject: [PATCH 2/2] Use setContentSize() instead of setSize() when resizing + +setContentSize() still works when resizable is false +--- + src/main.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/main.js b/src/main.js +index 6a55ea5..329c128 100644 +--- a/src/main.js ++++ b/src/main.js +@@ -148,7 +148,7 @@ ipcMain.on("resize", function (ev, width, height) { + let windowPosition = win.getPosition(); + + // Set new window size +- win.setSize(Math.round(width), Math.round(height)); ++ win.setContentSize(Math.round(width), Math.round(height)); + + // Apply previous position again to fix up- and downwards resize on some Linux distros + if(os.platform() === "linux") { |