core/window: backing windows can now be destroyed and recreated

This fixes a crash in layershells and the setVisible crash on nvidia.
This commit is contained in:
outfoxxed 2024-03-27 00:44:13 -07:00
parent b6dc6967a1
commit 3a0381dcbe
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
16 changed files with 257 additions and 112 deletions

View file

@ -62,7 +62,8 @@ class ProxyPopupWindow: public ProxyWindowBase {
public:
explicit ProxyPopupWindow(QObject* parent = nullptr);
void setupWindow() override;
void completeWindow() override;
void postCompleteWindow() override;
void setScreen(QuickshellScreenInfo* screen) override;
void setVisible(bool visible) override;
@ -84,7 +85,7 @@ signals:
void relativeYChanged();
private slots:
void onParentConnected();
void onParentUpdated();
void onParentDestroyed();
void updateX();
void updateY();