mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
output-layout: remove wlr_output_layout_output_state
wlroots uses "// private state" comments to denote structure fields which shouldn't be accessed by compositors, so let's drop wlr_output_layout_output_state and inline its fields into wlr_output_layout_output; this also simplifies layout output creation.
This commit is contained in:
parent
604df8b327
commit
27ea18cc33
2 changed files with 25 additions and 34 deletions
|
|
@ -36,18 +36,25 @@ struct wlr_output_layout {
|
|||
void *data;
|
||||
};
|
||||
|
||||
struct wlr_output_layout_output_state;
|
||||
|
||||
struct wlr_output_layout_output {
|
||||
struct wlr_output_layout *layout;
|
||||
|
||||
struct wlr_output *output;
|
||||
|
||||
int x, y;
|
||||
struct wl_list link;
|
||||
struct wlr_output_layout_output_state *state;
|
||||
|
||||
struct wlr_addon addon;
|
||||
bool auto_configured;
|
||||
|
||||
struct {
|
||||
struct wl_signal destroy;
|
||||
} events;
|
||||
|
||||
// private state
|
||||
|
||||
struct wlr_addon addon;
|
||||
|
||||
struct wl_listener commit;
|
||||
};
|
||||
|
||||
struct wlr_output_layout *wlr_output_layout_create(void);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue