Skip to content

Commit 14ee523

Browse files
authored
Add files via upload
1 parent 1b39763 commit 14ee523

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

applets/workspaces/workspaces.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include "workspaces.h"
2+
3+
void Workspaces::setCurrentSpace(qint8 newSpace) {
4+
KWindowSystem::setCurrentDesktop(newSpace);
5+
}

applets/workspaces/workspaces.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#ifndef WORKSPACES_H
2+
#define WORKSPACES_H
3+
4+
#include <QtGlobal>
5+
#include <KWindowSystem>
6+
7+
8+
class Workspaces
9+
{
10+
public:
11+
void setCurrentSpace(qint8 newSpace);
12+
};
13+
14+
#endif // WORKSPACES_H

0 commit comments

Comments
 (0)