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

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

#include <map>
#include <string>

#include "structs.h"

void initEWMH(Display** dpy, Window* root, int numWS, const std::string workspaceNames[]);

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);