Merge pull request #411 from keis/sway

Basic sway support
This commit is contained in:
Lemmy
2025-10-07 20:56:06 -04:00
committed by GitHub
6 changed files with 275 additions and 23 deletions
+2 -2
View File
@@ -105,13 +105,13 @@ Rectangle {
if (mouse.button === Qt.LeftButton) {
try {
CompositorService.focusWindow(taskbarItem.modelData.id)
CompositorService.focusWindow(taskbarItem.modelData)
} catch (error) {
Logger.error("Taskbar", "Failed to activate toplevel: " + error)
}
} else if (mouse.button === Qt.RightButton) {
try {
CompositorService.closeWindow(taskbarItem.modelData.id)
CompositorService.closeWindow(taskbarItem.modelData)
} catch (error) {
Logger.error("Taskbar", "Failed to close toplevel: " + error)
}
+3 -3
View File
@@ -119,7 +119,7 @@ Item {
next = localWorkspaces.count - 1
const ws = localWorkspaces.get(next)
if (ws && ws.idx !== undefined)
CompositorService.switchToWorkspace(ws.idx)
CompositorService.switchToWorkspace(ws)
}
Component.onCompleted: {
@@ -323,7 +323,7 @@ Item {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
CompositorService.switchToWorkspace(model.idx)
CompositorService.switchToWorkspace(model)
}
hoverEnabled: true
}
@@ -467,7 +467,7 @@ Item {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
CompositorService.switchToWorkspace(model.idx)
CompositorService.switchToWorkspace(model)
}
hoverEnabled: true
}