Use change signals on Window interface class.

QWaylandLayerSurface pulled data from the Window on startup. The Window
pushed data into the QWaylandLayerSurface on changes. Having two
patterns is a sign of something being off.

This moves everything to a single design, pulling from the public
interface. This allows us to drop a code path that meddles with
QWaylandWindow internals.
This commit is contained in:
David Edmundson
2022-06-30 08:09:21 +00:00
parent 13961ef7b9
commit 7bd63669ea
3 changed files with 33 additions and 41 deletions

View File

@ -93,6 +93,13 @@ public:
*/
static Window *get(QWindow *window);
Q_SIGNALS:
void anchorsChanged();
void exclusionZoneChanged();
void marginsChanged();
void keyboardInteractivityChanged();
void layerChanged();
private:
Window(QWindow *window);
QScopedPointer<WindowPrivate> d;