add option for moving cursor to the focused window (#89)

This commit is contained in:
Himadri Bhattacharjee
2025-03-26 09:11:12 +05:30
committed by Peter Fajdiga
parent c99cad96c3
commit 6dd356dc53
8 changed files with 39 additions and 0 deletions

View File

@@ -29,6 +29,16 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="kcfg_cursorFollowsFocus">
<property name="text">
<string>Cursor follows focus</string>
</property>
<property name="toolTip">
<string>When a window gains focus, move the cursor to it</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="kcfg_stackColumnsByDefault">
<property name="text">

View File

@@ -51,4 +51,13 @@ Item {
onCancelled: qmlBase.karouselInstance.gestureScrollFinish()
onProgressChanged: qmlBase.karouselInstance.gestureScroll(progress)
}
DBusCall {
id: moveCursorToFocus
service: "org.kde.kglobalaccel"
path: "/component/kwin"
method: "invokeShortcut"
arguments: ["MoveMouseToFocus"]
}
}