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
10.3.x-maintenance
Nicholas Sherlock 2015-09-25 00:59:54 +12:00
parent b7921de528
commit e3e28a3c37
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,8 @@
"fileSystem",
"fileSystem.write",
"fileSystem.retainEntries",
"notifications"
"notifications",
"alwaysOnTopWindows"
],
"optional_permissions": [

View File

@ -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) {