diff options
author | morguldir | 2019-11-04 23:01:40 +0100 |
---|---|---|
committer | morguldir | 2019-11-04 23:03:04 +0100 |
commit | e03defef3de904b8a64dc55e7b10ca6451b874ef (patch) | |
tree | a50c86fff4db20b5a51f740330a6bcb785e97fa0 /resizable.patch | |
parent | d578bbe0cd78479ce1ab415faafd1e4f2144dcf6 (diff) | |
download | aur-e03defef3de904b8a64dc55e7b10ca6451b874ef.tar.gz |
Add patch for icons and fix window using more space than it needs
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") { |