mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
decouples outputenable state and wl_output global
This decouples wlr_output_enable and the wl_global. The previously internal functions wlr_output_(destroy/create)_global are exposed and used automatically in the wlr_output_layout to create/tear down the global. The compositor can handle them itself if it wants to, but I think this is the right moment to create/destroy the wl_output when the wlr_output_layout is used.
This commit is contained in:
parent
03440bbd83
commit
3cf7225cec
8 changed files with 14 additions and 25 deletions
|
|
@ -89,6 +89,8 @@ struct wlr_output {
|
|||
struct wlr_surface;
|
||||
|
||||
void wlr_output_enable(struct wlr_output *output, bool enable);
|
||||
void wlr_output_create_global();
|
||||
void wlr_output_destroy_global();
|
||||
bool wlr_output_set_mode(struct wlr_output *output,
|
||||
struct wlr_output_mode *mode);
|
||||
bool wlr_output_set_custom_mode(struct wlr_output *output, int32_t width,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue