output: disable output autoconfig if we got a wlr-output-management client

When a daemon such as kanshi is connected, we don't want to
auto-configure the output in such a way that the daemon would need
to undo. Fix this by disabling output auto-configuration while a
wlr-output-management client is connected.
This commit is contained in:
Simon Ser 2025-10-02 18:20:44 +02:00
parent f9626f7951
commit eb55aa6dc3
2 changed files with 113 additions and 37 deletions

View file

@ -18,6 +18,14 @@ struct cg_output {
struct wl_listener frame;
struct wl_list link; // cg_server::outputs
struct wl_list pending_autoconfigures; // cg_output_pending_autoconfigure::link
};
struct cg_output_pending_autoconfigure {
struct cg_output *output;
struct wl_listener resource_destroy;
struct wl_list link; // cg_output::pending_configures
};
void handle_output_manager_apply(struct wl_listener *listener, void *data);