1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 06:52:50 -05:00

dock: repair context menu screens & tooltips

This commit is contained in:
bbedward
2025-10-15 18:15:12 -04:00
parent a50a97314d
commit edd54dda84
4 changed files with 86 additions and 82 deletions

View File

@@ -17,22 +17,15 @@ PanelWindow {
property bool hidePin: false
property var desktopEntry: null
function showForButton(button, data, dockHeight, hidePinOption, entry) {
function showForButton(button, data, dockHeight, hidePinOption, entry, dockScreen) {
anchorItem = button
appData = data
dockVisibleHeight = dockHeight || 40
hidePin = hidePinOption || false
desktopEntry = entry || null
const dockWindow = button.Window.window
if (dockWindow) {
for (var i = 0; i < Quickshell.screens.length; i++) {
const s = Quickshell.screens[i]
if (dockWindow.x >= s.x && dockWindow.x < s.x + s.width) {
root.screen = s
break
}
}
if (dockScreen) {
root.screen = dockScreen
}
showContextMenu = true