From 4c1977f24a76d42fe22c350bb4eafcd461b3e6f7 Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Wed, 18 Oct 2023 17:43:15 +0100 Subject: [PATCH] Update additional display titles --- app/ui.js | 1 + app/ui_screen.js | 3 +++ screen.html | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/ui.js b/app/ui.js index 1a35e508..3d3e1f95 100644 --- a/app/ui.js +++ b/app/ui.js @@ -2842,6 +2842,7 @@ const UI = { // UI.rfb.applyScreenPlan(screenPlan); // applyScreenPlan is triggered in UI.updateMonitors UI.updateMonitors(screenPlan) + UI.rfb.identify(UI.monitors) }, //Helper to add options to dropdown. diff --git a/app/ui_screen.js b/app/ui_screen.js index 625b359a..f5e9783a 100644 --- a/app/ui_screen.js +++ b/app/ui_screen.js @@ -109,6 +109,8 @@ const UI = { //attach this secondary display to the primary display UI.screenID = UI.rfb.attachSecondaryDisplay(); + document.querySelector('title').textContent = 'Display ' + UI.screenID + if (supportsBinaryClipboard()) { // explicitly request permission to the clipboard @@ -169,6 +171,7 @@ const UI = { const screen = data.screens.find(el => el.id === UI.screenID) document.getElementById('noVNC_identify_monitor').innerHTML = screen.num document.getElementById('noVNC_identify_monitor').classList.add("show") + document.querySelector('title').textContent = 'Display ' + screen.num + ' - ' + UI.screenID setTimeout(() => { document.getElementById('noVNC_identify_monitor').classList.remove("show") }, 3500) diff --git a/screen.html b/screen.html index 56bd6689..66ddd034 100644 --- a/screen.html +++ b/screen.html @@ -6,7 +6,7 @@ noVNC is licensed under the MPL 2.0 (see LICENSE.txt) This file is licensed under the 2-Clause BSD license (see LICENSE.txt). --> - KasmVNC + Additional Display