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