mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 22:50:57 +00:00
Partially revert 8037fb76fc to fix mouse polling issues on Windows
This commit is contained in:
+15
-5
@@ -15,6 +15,11 @@ Item {
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
// The StackView will trigger a visibility change when
|
||||
// we're pushed onto it, causing our onVisibleChanged
|
||||
// routine to run, but only if we start as invisible
|
||||
visible: false
|
||||
|
||||
function stageStarting(stage)
|
||||
{
|
||||
// Update the spinner text
|
||||
@@ -100,7 +105,16 @@ Item {
|
||||
id: gamepadKeyNav
|
||||
}
|
||||
|
||||
StackView.onActivated: {
|
||||
StackView.onDeactivating: {
|
||||
// Show the toolbar again when popped off the stack
|
||||
toolBar.visible = true
|
||||
}
|
||||
|
||||
// !!! Changing this to use the StackView activation callbacks
|
||||
// causes our mouse polling rate to drop significantly on
|
||||
// Windows for some reason !!!
|
||||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
// Hide the toolbar before we start loading
|
||||
toolBar.visible = false
|
||||
|
||||
@@ -124,10 +138,6 @@ Item {
|
||||
// Run the streaming session to completion
|
||||
session.exec(Screen.virtualX, Screen.virtualY)
|
||||
}
|
||||
|
||||
StackView.onDeactivating: {
|
||||
// Show the toolbar again
|
||||
toolBar.visible = true
|
||||
}
|
||||
|
||||
Row {
|
||||
|
||||
Reference in New Issue
Block a user