summaryrefslogtreecommitdiff
path: root/src/ewmh.h
blob: 9473d5d32b6b07d5bdf941e394a25bfae15ce59c (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
#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);

void setFullscreen(Window w, bool fullscreen);

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

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