This repository was archived by the owner on Aug 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwm_core.h
53 lines (48 loc) · 1.58 KB
/
wm_core.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* wm_core.h - Pegasus Epsilon's Desktop Environment
** Goal: Less than a megabyte resident
** (C)opyright 2019-2020 "Pegasus Epsilon" <pegasus@pimpninjas.org>
** Distribute Unmodified - https://pegasus.pimpninjas.org/license
*/
#ifndef WM_H
#define WM_H
#include <X11/Xlib.h>
#include <stdint.h>
#include "types.h"
extern long unsigned unsafe;
extern long long nul;
#define VOID ((void *)&nul)
extern Display *display;
extern struct { Window handle; unsigned width, height; } root;
extern Window pede;
extern uint32_t active_workspace (void);
Window active_window (void);
void focus_window (Window);
void focus_active_window (void);
void activate_workspace (const Workspace);
void set_workspace (const Window, const Workspace);
char *window_title (Window);
void set_sticky (Window);
/* TODO:
void clear_sticky (Window);
void set_bottom (Window);
void set_top (Window);
*/
long unsigned get_window_property_array (Window, Atom, Atom, void **);
Bool window_property_array_contains (Window, Atom, Atom);
unsigned filter_windows (Window **, Bool (*)(Window));
Bool window_pageable (Window);
Bool window_managed (Window);
Bool window_visible (Window);
Workspace window_workspace (Window);
void update_client_list_stacking (void);
void window_diagnostic (char *, Window, char *);
void toggle_fullscreen (void);
void close_window (Window);
void remove_state (Window, Atom);
void add_state (Window, Atom);
void alter_window_state (XClientMessageEvent);
void maximize_window (Window);
void refuse_selection_request (XSelectionRequestEvent);
void make_wm (Window);
void map_window (XMapRequestEvent *);
#endif // WM_H