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

このコミットが含まれているのは:
MadcowOG 2023-04-21 19:26:38 -07:00
コミット ee82bc6975
2個のファイルの変更8行の追加0行の削除

ファイルの表示

@ -236,6 +236,13 @@ void monitor_update(struct Monitor *monitor) {
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) {
running = 0;
}

ファイルの表示

@ -22,6 +22,7 @@ struct Monitor {
};
void panic(const char *fmt, ...);
void monitors_update(void);
struct Monitor *monitor_from_surface(const struct wl_surface *surface);
extern struct wl_compositor *compositor;