Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

fix(linux): scope window type changes to KDE only, preserve GNOME behavior

Gabriel Steinacefdb915f36
diff --git a/src/helpers/windowConfig.js b/src/helpers/windowConfig.js
index ea5d85e93..eaaa8bbd9 100644
--- a/src/helpers/windowConfig.js
+++ b/src/helpers/windowConfig.js
@@ -10,7 +10,7 @@ const isKDEWayland =
process.env.XDG_SESSION_TYPE === "wayland" &&
/kde/i.test(process.env.XDG_CURRENT_DESKTOP || "");
-const OVERLAY_WINDOW_TYPE =
+const MAIN_OVERLAY_TYPE =
process.platform === "darwin"
? "panel"
: process.platform === "linux"
@@ -19,6 +19,15 @@ const OVERLAY_WINDOW_TYPE =
: "toolbar"
: "normal";
+const FLOATING_OVERLAY_TYPE =
+ process.platform === "darwin"
+ ? "panel"
+ : process.platform === "linux"
+ ? isKDEWayland
+ ? "normal"
+ : "toolbar"
+ : "normal";
+
const WINDOW_SIZES = {
BASE: { width: 96, height: 96 },
WITH_MENU: { width: 240, height: 280 },
@@ -48,7 +57,7 @@ const MAIN_WINDOW_CONFIG = {
fullScreenable: false,
hasShadow: false,
acceptsFirstMouse: true,
- type: OVERLAY_WINDOW_TYPE,
+ type: MAIN_OVERLAY_TYPE,
};
// Control panel window configuration
@@ -108,7 +117,7 @@ const NOTIFICATION_WINDOW_CONFIG = {
sandbox: true,
},
visibleOnAllWorkspaces: process.platform !== "win32",
- type: OVERLAY_WINDOW_TYPE,
+ type: FLOATING_OVERLAY_TYPE,
};
class WindowPositionUtil {
@@ -184,7 +193,7 @@ const AGENT_OVERLAY_CONFIG = {
resizable: false,
fullScreenable: false,
acceptsFirstMouse: true,
- type: OVERLAY_WINDOW_TYPE,
+ type: FLOATING_OVERLAY_TYPE,
visibleOnAllWorkspaces: process.platform !== "win32",
webPreferences: {
preload: path.join(__dirname, "..", "..", "preload.js"),