Commit Graph
1 Commits
Author SHA1 Message Date
yetone 7f66a0cce2 gui: on Linux the quick panel is dragged by its header, as the window is (#1430, olivezane)
On KDE Wayland the panel can't be put by the tray icon (a Wayland window
can't place itself, so KWin places it), and since ownFrame took KWin's
title bar off it (#1283) it had no handle at all: only Meta+drag moved
it. The panel's header set --wails-draggable: no-drag on every platform
(ebcd5281, when the panel began loading the Wails runtime); it now does so
on the Mac and Windows only, where the panel stays by the icon. On Linux
the header drags it as the main window's does (gtk_window_begin_move_drag,
which Wayland takes), and the tabs and buttons in it stay clicks.

Run: panel-drag-linux.test.cjs (Linux, Mac and Windows platforms; panel
and window; every visible control in the header no-drag) passes in
Chromium and WebKit, en and zh, and fails without the app.js change
("Linux: the panel's header is its handle"). tray-cell-click (which
asserts the Mac's panel stays no-drag) passes in both engines. No new
strings. Not tried on a real KDE Plasma 6 Wayland session.
2026-10-10 17:54:19 +08:00