[Fix]: #127730 平板模式下顶层窗口没有最大化;

This commit is contained in:
zouxiaoyi 2022-07-21 10:41:09 +08:00
parent 5cd2ea3e05
commit 221dad73a3
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ void Workspace::switchTablet(bool bOn)
bool bTopClientMaximize = true; //顶层窗口最大化标志 bool bTopClientMaximize = true; //顶层窗口最大化标志
for (int i = stacking_order.count() - 1; i > -1; --i) { for (int i = stacking_order.count() - 1; i > -1; --i) {
AbstractClient *c = qobject_cast<AbstractClient*>(stacking_order.at(i)); AbstractClient *c = qobject_cast<AbstractClient*>(stacking_order.at(i));
if (!c || c->isDock() || c->isDesktop()) if (!c || c->isDock() || c->isDesktop() || c->caption().contains("sidebar", Qt::CaseInsensitive))
continue; continue;
//m_bTabletMode为true表示pc切平板 //m_bTabletMode为true表示pc切平板