Merge branch 'Plasma/5.15'
This commit is contained in:
commit
3e68254eff
2 changed files with 6 additions and 1 deletions
|
@ -501,7 +501,7 @@ void AbstractClient::setDesktops(QVector<VirtualDesktop*> desktops)
|
|||
{
|
||||
//on x11 we can have only one desktop at a time
|
||||
if (kwinApp()->operationMode() == Application::OperationModeX11 && desktops.size() > 1) {
|
||||
desktops = QVector<VirtualDesktop*>({desktops.first()});
|
||||
desktops = QVector<VirtualDesktop*>({desktops.last()});
|
||||
}
|
||||
|
||||
if (desktops == m_desktops) {
|
||||
|
|
|
@ -430,6 +430,11 @@ public:
|
|||
void setDesktop(int);
|
||||
void enterDesktop(VirtualDesktop *desktop);
|
||||
void leaveDesktop(VirtualDesktop *desktop);
|
||||
|
||||
/**
|
||||
* Set the window as being on the attached list of desktops
|
||||
* On X11 it will be set to the last entry
|
||||
*/
|
||||
void setDesktops(QVector<VirtualDesktop *> desktops);
|
||||
|
||||
int desktop() const override {
|
||||
|
|
Loading…
Reference in a new issue