forked from quickshell/quickshell
fix: setting visible above geom in ProxyFloatingWindow
Used to shrink window to the given size.
This commit is contained in:
parent
f2f7ec92f2
commit
b62f2f3a50
|
@ -98,9 +98,14 @@ void ProxyWindowBase::dataRemoveLast(QQmlListProperty<QObject>* prop) {
|
||||||
backer.removeLast(&backer);
|
backer.removeLast(&backer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProxyFloatingWindow::setVisible(bool value) {
|
void ProxyFloatingWindow::earlyInit(QObject* old) {
|
||||||
this->geometryLocked |= value;
|
ProxyWindowBase::earlyInit(old);
|
||||||
ProxyWindowBase::setVisible(value);
|
this->geometryLocked = this->window->isVisible();
|
||||||
|
}
|
||||||
|
|
||||||
|
void ProxyFloatingWindow::componentComplete() {
|
||||||
|
ProxyWindowBase::componentComplete();
|
||||||
|
this->geometryLocked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProxyFloatingWindow::setWidth(qint32 value) {
|
void ProxyFloatingWindow::setWidth(qint32 value) {
|
||||||
|
|
|
@ -77,7 +77,9 @@ class ProxyFloatingWindow: public ProxyWindowBase {
|
||||||
QML_ELEMENT;
|
QML_ELEMENT;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void setVisible(bool value) override;
|
void earlyInit(QObject* old) override;
|
||||||
|
void componentComplete() override;
|
||||||
|
|
||||||
void setWidth(qint32 value) override;
|
void setWidth(qint32 value) override;
|
||||||
void setHeight(qint32 value) override;
|
void setHeight(qint32 value) override;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue