mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-05-28 02:50:21 -04:00
Qt's resizing is inherently synchronous. When an application calls
QWindow::setGeometry with a new size, we expect it to make that resize.
An expose event of the requested size will be generated.
Wayland is by default async, a client requests a size, and then will be
configured to that size, or potentially another size.
The simplest way to map the two APIs is to roundtrip when the client
wants to resize. This way we can guarantee that a call to
`setGeometry(); update()` will have the server configured size before
the paint.
In practice it's still not perfect due to other issues, but at least
will sort itself out within a frame.
(cherry picked from commit
|
||
---|---|---|
.. | ||
declarative | ||
interfaces | ||
CMakeLists.txt | ||
layer-shell.json | ||
layer-shell.json.license | ||
qwaylandlayershellintegration_p.h | ||
qwaylandlayershellintegration.cpp | ||
qwaylandlayershellintegrationplugin.cpp | ||
qwaylandlayersurface_p.h | ||
qwaylandlayersurface.cpp | ||
qwaylandxdgactivationv1_p.h | ||
qwaylandxdgactivationv1.cpp | ||
wlr-layer-shell-unstable-v1.xml | ||
wlr-layer-shell-unstable-v1.xml.license |