forked from quickshell/quickshell
debug: run lints after window expose
Ensures items are at their final sizes before checking them, fixing some false positives.
This commit is contained in:
parent
6ceee06884
commit
eb5a5b8b67
4 changed files with 38 additions and 12 deletions
|
@ -18,7 +18,7 @@ WlrLayershell::WlrLayershell(QObject* parent)
|
|||
: ProxyWindowBase(parent)
|
||||
, ext(new LayershellWindowExtension(this)) {}
|
||||
|
||||
QQuickWindow* WlrLayershell::retrieveWindow(QObject* oldInstance) {
|
||||
ProxiedWindow* WlrLayershell::retrieveWindow(QObject* oldInstance) {
|
||||
auto* old = qobject_cast<WlrLayershell*>(oldInstance);
|
||||
auto* window = old == nullptr ? nullptr : old->disownWindow();
|
||||
|
||||
|
@ -33,8 +33,8 @@ QQuickWindow* WlrLayershell::retrieveWindow(QObject* oldInstance) {
|
|||
return this->createQQuickWindow();
|
||||
}
|
||||
|
||||
QQuickWindow* WlrLayershell::createQQuickWindow() {
|
||||
auto* window = new QQuickWindow();
|
||||
ProxiedWindow* WlrLayershell::createQQuickWindow() {
|
||||
auto* window = this->ProxyWindowBase::createQQuickWindow();
|
||||
|
||||
if (!this->ext->attach(window)) {
|
||||
qWarning() << "Could not attach Layershell extension to new QQuickWindow. Layer will not "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue