Simple update all monitors function so that any file can an update if they need to.
parent
fd25c74881
commit
ee82bc6975
|
|
@ -236,6 +236,13 @@ void monitor_update(struct Monitor *monitor) {
|
||||||
pipeline_invalidate(monitor->pipeline);
|
pipeline_invalidate(monitor->pipeline);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void monitors_update(void) {
|
||||||
|
struct Monitor *monitor;
|
||||||
|
wl_list_for_each(monitor, &monitors, link) {
|
||||||
|
monitor_update(monitor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void pipe_in(int fd, short mask, void *data) {
|
void pipe_in(int fd, short mask, void *data) {
|
||||||
running = 0;
|
running = 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ struct Monitor {
|
||||||
};
|
};
|
||||||
|
|
||||||
void panic(const char *fmt, ...);
|
void panic(const char *fmt, ...);
|
||||||
|
void monitors_update(void);
|
||||||
struct Monitor *monitor_from_surface(const struct wl_surface *surface);
|
struct Monitor *monitor_from_surface(const struct wl_surface *surface);
|
||||||
|
|
||||||
extern struct wl_compositor *compositor;
|
extern struct wl_compositor *compositor;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue