summaryrefslogtreecommitdiff
path: root/src/x11-utils.h
blob: 63f3e7e8c7ee132b09b532f714185d93175cffc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __HERBST_X11_UTILS_H_
#define __HERBST_X11_UTILS_H_

#include <stddef.h>
#include <stdbool.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>

#include "x11-types.h"


// cut a rect out of the window, s.t. the window has geometry rect and a frame
// of width framewidth remains
void window_cut_rect_hole(Window win, int width, int height, int framewidth);
void window_make_intransparent(Window win, int width, int height);

Point2D get_cursor_position();

#endif