Simple update all monitors function so that any file can an update if they need to.

master
MadcowOG 2023-04-21 19:26:38 -07:00
parent fd25c74881
commit ee82bc6975
2 changed files with 8 additions and 0 deletions

View File

@ -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;
} }

View File

@ -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;