forked from trip-zip/somewm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmonitor.h
More file actions
45 lines (37 loc) · 1.45 KB
/
Copy pathmonitor.h
File metadata and controls
45 lines (37 loc) · 1.45 KB
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
/*
* monitor.h - Monitor/output management for somewm compositor
*
* Display lifecycle, hotplug, rendering, DPMS, and output configuration.
*/
#ifndef MONITOR_H
#define MONITOR_H
#include "somewm_types.h"
struct wl_listener;
struct wlr_box;
struct wlr_output_configuration_v1;
/* Monitor lifecycle */
void createmon(struct wl_listener *listener, void *data);
void cleanupmon(struct wl_listener *listener, void *data);
void closemon(Monitor *m);
void updatemons(struct wl_listener *listener, void *data);
/* Rendering */
void rendermon(struct wl_listener *listener, void *data);
void gpureset(struct wl_listener *listener, void *data);
/* Output configuration */
void outputmgrapply(struct wl_listener *listener, void *data);
void outputmgrapplyortest(struct wlr_output_configuration_v1 *config, int test);
void outputmgrtest(struct wl_listener *listener, void *data);
void powermgrsetmode(struct wl_listener *listener, void *data);
void requestmonstate(struct wl_listener *listener, void *data);
/* Queries */
Monitor *dirtomon(enum wlr_direction dir);
void focusmon(const Arg *arg);
Monitor *xytomon(double x, double y);
/* Listener structs (registered in setup(), defined in monitor.c) */
extern struct wl_listener gpu_reset;
extern struct wl_listener layout_change;
extern struct wl_listener new_output;
extern struct wl_listener output_mgr_apply;
extern struct wl_listener output_mgr_test;
extern struct wl_listener output_power_mgr_set_mode;
#endif /* MONITOR_H */