forked from quickshell/quickshell
fix(wayland): layershell windows are recreated if attach fails
Usually this happens if the namespace changes
This commit is contained in:
parent
c2930783ea
commit
13c5d7c7a9
5 changed files with 41 additions and 13 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include <qobject.h>
|
||||
#include <qqmlintegration.h>
|
||||
#include <qquickitem.h>
|
||||
#include <qquickwindow.h>
|
||||
#include <qtmetamacros.h>
|
||||
#include <qtypes.h>
|
||||
|
||||
|
@ -30,6 +32,7 @@ class WaylandLayershell: public ProxyWindowBase {
|
|||
public:
|
||||
explicit WaylandLayershell(QObject* parent = nullptr);
|
||||
|
||||
QQuickWindow* createWindow(QObject* oldInstance) override;
|
||||
void setupWindow() override;
|
||||
|
||||
void setWidth(qint32 width) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue