summaryrefslogtreecommitdiff
path: root/src/ewmh.h
blob: cb1284a9b178d2e9f03a5b4ea4eac3b006e6da78 (plain) (blame)
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
#pragma once

#include <X11/X.h>
#include <X11/Xatom.h>

#include <map>
#include <string>
#include <vector>

#include "structs.h"
#include "config.h"
#include "util.h"

class EWMHModule
{
public:
	EWMHModule(Globals& globals, Config& cfg);
	
	void init();

	void updateClientList(std::map<int, Client> clients);

	void updateScreens(ScreenInfo* screens, int nscreens);

	void setWindowDesktop(Window w, int desktop);

	void setCurrentDesktop(int desktop);

	void setFullscreen(Window w, bool fullscreen);

	void setIPCPath(unsigned char* path, int len);

	int getProp(Window w, char* propName, Atom* type, unsigned char** data);

private:
	Globals& globals;
	Config& cfg;
};