aboutsummaryrefslogtreecommitdiff
path: root/lumina-wm-INCOMPLETE/LWindowManager.h
blob: 203efa1bf9f0a8d457577ec75e7fcdbf31d1383e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//===========================================
//  Lumina-DE source code
//  Copyright (c) 2015, Ken Moore
//  Available under the 3-clause BSD license
//  See the LICENSE file for full details
//===========================================
#ifndef _LUMINA_DESKTOP_WINDOW_MANAGER_MAIN_CLASS_H
#define _LUMINA_DESKTOP_WINDOW_MANAGER_MAIN_CLASS_H

#include "GlobalDefines.h"
#include "LWindow.h"

class LWindowManager : public QObject{
	Q_OBJECT
public:
	LWindowManager();
	~LWindowManager();

	bool start();
	void stop();

private:
	QList<LWindow*> WINS;
	QList<WId> Stack_Desktop, Stack_Below, Stack_Normal, Stack_Above, Stack_Fullscreen;
public slots:
	void NewWindow(WId win, bool requested = true);
	void ClosedWindow(WId win);
	void ModifyWindow(WId win, LWM::WindowAction act);

	void RestackWindows();
	void RepaintWindows();

private slots:
	void FinishedWindow(WId win); //This is used for LWindow connections/animations

signals:
	void NewFullScreenWindows(QList<WId>);
};

#endif
bgstack15