1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2026-02-08 00:32:27 +00:00

Fix focus issue with multiple windows. Fix build issues with previous Qt versions.

This commit is contained in:
Filippo Scognamiglio
2026-01-15 00:12:18 +01:00
parent f99ccf97dc
commit a0a16fc300
4 changed files with 5 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ import "utils.js" as Utils
Loader {
id: burnInEffect
property ShaderEffectSource source: item ? item.source : null
property ShaderEffectSource effectSource: item ? item.source : null
property real lastUpdate: 0
property real prevLastUpdate: 0

View File

@@ -83,13 +83,6 @@ Item{
terminalContainer.updateSources()
}
}
Connections {
target: terminalWindow
onActiveChanged: {
kterminal.forceActiveFocus()
}
}
function updateSources() {
kterminal.update()

View File

@@ -73,7 +73,7 @@ Item {
id: dynamicShader
property ShaderEffectSource screenBuffer: frameBuffer
property ShaderEffectSource burnInSource: burnInEffect.source
property ShaderEffectSource burnInSource: burnInEffect.effectSource
property ShaderEffectSource frameSource: terminalFrameLoader.item
property color fontColor: parent.fontColor

View File

@@ -130,9 +130,9 @@ Item {
Repeater {
model: tabsModel
TerminalContainer {
property bool isCurrentItem: StackLayout.isCurrentItem
onIsCurrentItemChanged: {
if (isCurrentItem) {
property bool shouldHaveFocus: terminalWindow.active && StackLayout.isCurrentItem
onShouldHaveFocusChanged: {
if (shouldHaveFocus) {
activate()
}
}