forked from quickshell/quickshell
core/window: fix windows not taking screen assignments during reload
This commit is contained in:
parent
48156a55b3
commit
41803ee235
|
@ -73,6 +73,13 @@ void ProxyWindowBase::setupWindow() {
|
||||||
QObject::connect(this, &ProxyWindowBase::heightChanged, this, &ProxyWindowBase::onMaskChanged);
|
QObject::connect(this, &ProxyWindowBase::heightChanged, this, &ProxyWindowBase::onMaskChanged);
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
|
if (this->window->screen() != this->mScreen) {
|
||||||
|
auto reshow = this->window->isVisible();
|
||||||
|
if (reshow) this->window->setVisible(false);
|
||||||
|
this->window->setScreen(this->mScreen);
|
||||||
|
if (reshow) this->window->setVisible(true);
|
||||||
|
}
|
||||||
|
|
||||||
this->window->setScreen(this->mScreen);
|
this->window->setScreen(this->mScreen);
|
||||||
this->setWidth(this->mWidth);
|
this->setWidth(this->mWidth);
|
||||||
this->setHeight(this->mHeight);
|
this->setHeight(this->mHeight);
|
||||||
|
|
Loading…
Reference in a new issue