From 6063f7623e241fae377c2689feb6e1f2269d2d4a Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Wed, 28 Aug 2024 10:38:34 +0000 Subject: [PATCH] sync: from linuxdeepin/dtkwidget Synchronize source files from linuxdeepin/dtkwidget. Source-pull-request: https://github.com/linuxdeepin/dtkwidget/pull/601 --- src/widgets/dtitlebar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/dtitlebar.cpp b/src/widgets/dtitlebar.cpp index 6c32eeaf..4ad05f3f 100644 --- a/src/widgets/dtitlebar.cpp +++ b/src/widgets/dtitlebar.cpp @@ -1104,7 +1104,7 @@ bool DTitlebar::eventFilter(QObject *obj, QEvent *event) switch (event->type()) { case QEvent::ShowToParent: d->handleParentWindowIdChange(); - d->updateButtonsState(d->targetWindow()->windowFlags()); + d->handleParentWindowStateChange(); break; case QEvent::Resize: if (d->autoHideOnFullscreen) {