mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-11 08:57:21 +00:00
Drop snap-assist hover stub from decoration
The decoration QML sandbox has no DBus or kglobalaccel access, so the Qt.callDBus call from the maximize-button hover Timer was a silent no-op. Remove the dead Timer, hover state and grid-dot overlay; the shift-tiling script now polls the cursor over the title-bar button strip and triggers SHIFT Snap Assist itself. Also refresh the SPDX header on both decoration files.
This commit is contained in:
parent
9364cb29db
commit
d9b2e987dc
2 changed files with 9 additions and 5 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
# SPDX-FileCopyrightText: 2025 SHIFT Contributors
|
# SPDX-FileCopyrightText: 2026 Marco Allegretti <
|
||||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
install(
|
install(
|
||||||
DIRECTORY org.shift.decoration
|
DIRECTORY org.shift.decoration
|
||||||
DESTINATION ${KDE_INSTALL_DATADIR}/kwin/decorations
|
DESTINATION ${KDE_INSTALL_DATADIR}/kwin/decorations
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// SPDX-FileCopyrightText: 2025 SHIFT Contributors
|
// SPDX-FileCopyrightText: 2026 Marco Allegretti
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: EUPL 1.2
|
||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import org.kde.kwin.decoration
|
import org.kde.kwin.decoration
|
||||||
|
|
@ -181,6 +181,11 @@ Decoration {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Snap-assist hover trigger lives in the shift-tiling KWin script:
|
||||||
|
// the decoration QML sandbox has no DBus / kglobalaccel access, so
|
||||||
|
// the script polls the cursor over the active window's titlebar
|
||||||
|
// and invokes the SHIFT Snap Assist shortcut after a short hover.
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
visible: !isSpacer
|
visible: !isSpacer
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue