kill all process in hvnc button

This commit is contained in:
KingKDot
2026-04-24 09:53:28 -05:00
parent 4676f95184
commit b51c187c20
6 changed files with 61 additions and 0 deletions
+6
View File
@@ -55,6 +55,7 @@ import { checkFeatureAccess } from "./feature-gate.js";
const startBtn = document.getElementById("startBtn");
const stopBtn = document.getElementById("stopBtn");
const commandsBtn = document.getElementById("commandsBtn");
const killAllBtn = document.getElementById("killAllBtn");
const fullscreenBtn = document.getElementById("fullscreenBtn");
const mouseCtrl = document.getElementById("mouseCtrl");
const kbdCtrl = document.getElementById("kbdCtrl");
@@ -593,6 +594,11 @@ import { checkFeatureAccess } from "./feature-gate.js";
setStreamState("stopping", "Stopping stream");
sendCmd("hvnc_stop", {});
});
if (killAllBtn) {
killAllBtn.addEventListener("click", function () {
sendCmd("hvnc_kill_all", {});
});
}
fullscreenBtn.addEventListener("click", function () {
if (canvasContainer.requestFullscreen) {
canvasContainer.requestFullscreen();
+3
View File
@@ -70,6 +70,9 @@
<button id="commandsBtn" class="button ghost">
<i class="fa-solid fa-terminal"></i><span>Commands</span>
</button>
<button id="killAllBtn" class="button ghost" title="Kill all programs running on the hidden desktop">
<i class="fa-solid fa-skull"></i><span>Kill All</span>
</button>
<button id="fullscreenBtn" class="button ghost">
<i class="fa-solid fa-expand"></i><span>Fullscreen</span>
</button>