From 02229f2c2a20387fab3c8b51253877773d927405 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= <saghul@gmail.com>
Date: Thu, 9 Feb 2017 14:20:57 +0100
Subject: [PATCH] ui: set minimum window size to 800x600

A smaller window makes it for a bad experience.
---
 main.js | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/main.js b/main.js
index 716e974..af7af97 100644
--- a/main.js
+++ b/main.js
@@ -23,6 +23,17 @@ const indexURL = url.format({
  */
 let jitsiMeetWindow = null;
 
+/**
+ * Options used when creating the main Jitsi Meet window.
+ */
+const jitsiMeetWindowOptions = {
+    width: 800,
+    height: 600,
+    minWidth: 800,
+    minHeight: 600,
+    titleBarStyle: 'hidden'
+};
+
 /**
  * Sets the APP object listeners.
  */
@@ -45,8 +56,7 @@ function setAPPListeners () {
  * Opens new window with index.html(Jitsi Meet is loaded in iframe there).
  */
 function createJitsiMeetWindow () {
-    jitsiMeetWindow =
-        new BrowserWindow({width: 800, height: 600, titleBarStyle: 'hidden'});
+    jitsiMeetWindow = new BrowserWindow(jitsiMeetWindowOptions);
     jitsiMeetWindow.loadURL(indexURL);
 
     jitsiMeetWindow.on("closed", () => {
-- 
GitLab