mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-02 03:28:28 -04:00
fix(Hover): refactor & update hover tracking w/context menus
Fixes #2737
This commit is contained in:
@@ -12,10 +12,23 @@ Popup {
|
||||
property int selectedIndex: -1
|
||||
property bool keyboardNavigation: false
|
||||
property var parentFocusItem: null
|
||||
property var transientSurfaceTracker: null
|
||||
|
||||
signal menuClosed
|
||||
signal processKilled
|
||||
|
||||
onVisibleChanged: transientSurfaceTracker?.setActive(root, visible, null)
|
||||
Component.onDestruction: transientSurfaceTracker?.unregister(root)
|
||||
|
||||
Connections {
|
||||
target: processContextMenu.transientSurfaceTracker
|
||||
ignoreUnknownSignals: true
|
||||
|
||||
function onCloseRequested() {
|
||||
processContextMenu.close();
|
||||
}
|
||||
}
|
||||
|
||||
readonly property var menuItems: [
|
||||
{
|
||||
text: I18n.tr("Copy PID"),
|
||||
|
||||
Reference in New Issue
Block a user