Introduce member variable ScreenEdge to Workspace
This commit adds a new member variable m_screenEdge to Workspace. It is initialized in the constructor and deleted in the deconstructor. A getter is introduced as well.
This commit is contained in:
parent
55cbff052f
commit
7533bfac75
2 changed files with 10 additions and 0 deletions
|
@ -58,6 +58,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "scene.h"
|
||||
#include "deleted.h"
|
||||
#include "effects.h"
|
||||
#include "screenedge.h"
|
||||
#include "tilinglayout.h"
|
||||
|
||||
#include "scripting/scripting.h"
|
||||
|
@ -2391,6 +2392,12 @@ Outline* Workspace::outline()
|
|||
return m_outline;
|
||||
}
|
||||
|
||||
ScreenEdge* Workspace::screenEdge()
|
||||
{
|
||||
return &m_screenEdge;
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
||||
|
||||
#include "workspace.moc"
|
||||
|
|
|
@ -38,6 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#include "utils.h"
|
||||
#include "kdecoration.h"
|
||||
#include "kdecorationfactory.h"
|
||||
#include "screenedge.h"
|
||||
#include "sm.h"
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
|
@ -220,6 +221,7 @@ public:
|
|||
Position supportedTilingResizeMode(Client *c, Position currentMode);
|
||||
|
||||
Outline* outline();
|
||||
ScreenEdge* screenEdge();
|
||||
|
||||
//-------------------------------------------------
|
||||
// Desktop layout
|
||||
|
@ -330,6 +332,7 @@ private:
|
|||
QVector<TilingLayout *> tilingLayouts;
|
||||
|
||||
Outline* m_outline;
|
||||
ScreenEdge m_screenEdge;
|
||||
|
||||
//-------------------------------------------------
|
||||
// Unsorted
|
||||
|
|
Loading…
Reference in a new issue