take fullscreen windows out of tabbing

it's not been possible to attach tabs to an (undecorated!)
fullscreen window.
now it's neither possible to attach a fullscreen window to
another tabgroup and fullscreening a window will untab it

CCBUG: 332568

Forward port of abf3d200cfc39fcc27a22224512853a96d947add from kde-workspace
This commit is contained in:
Thomas Lübking 2014-03-26 18:06:03 +01:00 committed by Martin Gräßlin
parent 90fb9a5aa9
commit 5d8ae96a56
2 changed files with 4 additions and 1 deletions

View file

@ -2400,8 +2400,10 @@ void Client::setFullScreen(bool set, bool user)
fullscreen_mode = set ? FullScreenNormal : FullScreenNone;
if (was_fs == isFullScreen())
return;
if (set)
if (set) {
untab();
workspace()->raiseClient(this);
}
StackingUpdatesBlocker blocker1(workspace());
GeometryUpdatesBlocker blocker2(this);
workspace()->updateClientLayer(this); // active fullscreens get different layer

View file

@ -549,6 +549,7 @@ void UserActionsMenu::initTabbingPopups()
m_menu->insertMenu(m_removeFromTabGroup, m_addTabsMenu);
}
m_addTabsMenu->menuAction()->setEnabled(!m_client.data()->isFullScreen());
m_removeFromTabGroup->setVisible(needTabManagers);
m_closeTabGroup->setVisible(needTabManagers);
}