Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/iNavFlight/inav-configurator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Sherlock <n.sherlock@gmail.com>2015-09-24 15:59:54 +0300
committerNicholas Sherlock <n.sherlock@gmail.com>2015-09-24 15:59:54 +0300
commite3e28a3c37174109fcd53627ebabfddce34afd35 (patch)
tree81be885206a38454bc0c150553ad65899a0ab15a
parentb7921de5283ba1d4bb0c331c4983b92b841f1eec (diff)
Make joystick window always-on-top to avoid Chrome scheduling penalty
Chrome severely reduces the interval of setInterval() calls when a window is completely hidden (e.g. behind the main Configurator window). This causes rx loss / failsafe detection to trigger when using the RX_MSP joysticks
-rw-r--r--manifest.json3
-rw-r--r--tabs/receiver.js3
2 files changed, 4 insertions, 2 deletions
diff --git a/manifest.json b/manifest.json
index ba921616..3051e9bd 100644
--- a/manifest.json
+++ b/manifest.json
@@ -31,7 +31,8 @@
"fileSystem",
"fileSystem.write",
"fileSystem.retainEntries",
- "notifications"
+ "notifications",
+ "alwaysOnTopWindows"
],
"optional_permissions": [
diff --git a/tabs/receiver.js b/tabs/receiver.js
index 019c3465..3c104b08 100644
--- a/tabs/receiver.js
+++ b/tabs/receiver.js
@@ -324,7 +324,8 @@ TABS.receiver.initialize = function (callback) {
minWidth: windowWidth, minHeight: windowHeight,
width: windowWidth, height: windowHeight,
maxWidth: windowWidth, maxHeight: windowHeight
- }
+ },
+ alwaysOnTop: true
}, function(createdWindow) {
// Give the window a callback it can use to send the channels (otherwise it can't see those objects)
createdWindow.contentWindow.setRawRx = function(channels) {