summaryrefslogtreecommitdiff
path: root/ewmh.h
blob: 5fbc9a43ba9c39d748a2bff42681ede46f54f08a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

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

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

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

void initEWMH(Display** dpy, Window* root, int numWS, std::vector<Workspace> workspaces);

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

void setWindowDesktop(Window w, int desktop);

void setCurrentDesktop(int desktop);

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