With "Shrink to Button" on, the dismiss key shrinks the window to just itself: a see-through button that can be dragged anywhere. Tapping it grows the keyboard back around it, kept on screen. KWin moves and resizes the window through a one-off script, as Wayland clients can't place themselves. Also moves the window back on screen whenever it appears (KWin remembers where the button was), and releases the mouse after a window manager move or resize, which used to eat the next press on the grab bar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
204 B
C
8 lines
204 B
C
#pragma once
|
|
|
|
#include <QString>
|
|
|
|
// Runs a one-off KWin script (JavaScript) over D-Bus; it unloads itself when
|
|
// done. Asynchronous; failures are only logged.
|
|
void runKWinScript(const QString &source);
|