The grab bar didn't move the window by mouse, and the corner grip never resized it (the bar's handler took over its drag). The bar and grip now start the window manager's move/resize, and Super+LMB/RMB work too. A KWin rule in kwinrulesrc keeps the window above and unfocused, off the taskbar, pager and switcher, and remembers its position. KWin now places the window and keeps it on screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
495 B
QML
25 lines
495 B
QML
import QtQuick
|
|
|
|
// The grab bar under the floating keyboard. Moving the window is up to the
|
|
// owner (the window manager's move, so it works for mouse and touch alike).
|
|
Item {
|
|
id: handle
|
|
|
|
signal dragStarted()
|
|
|
|
implicitHeight: 22
|
|
|
|
Rectangle {
|
|
anchors.centerIn: parent
|
|
width: 120
|
|
height: 5
|
|
radius: height / 2
|
|
color: Theme.handle
|
|
}
|
|
|
|
DragHandler {
|
|
target: null
|
|
onActiveChanged: if (active) handle.dragStarted()
|
|
}
|
|
}
|