mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
output_layout: return wlr_output_layout_output when adding output
This will be used for the scene-graph integration.
This commit is contained in:
parent
e85c79051c
commit
91f813ffb7
2 changed files with 7 additions and 7 deletions
|
@ -82,7 +82,7 @@ struct wlr_output *wlr_output_layout_output_at(
|
|||
*
|
||||
* Returns true on success, false on a memory allocation error.
|
||||
*/
|
||||
bool wlr_output_layout_add(struct wlr_output_layout *layout,
|
||||
struct wlr_output_layout_output *wlr_output_layout_add(struct wlr_output_layout *layout,
|
||||
struct wlr_output *output, int lx, int ly);
|
||||
|
||||
/**
|
||||
|
@ -94,7 +94,7 @@ bool wlr_output_layout_add(struct wlr_output_layout *layout,
|
|||
*
|
||||
* Returns true on success, false on a memory allocation error.
|
||||
*/
|
||||
bool wlr_output_layout_add_auto(struct wlr_output_layout *layout,
|
||||
struct wlr_output_layout_output *wlr_output_layout_add_auto(struct wlr_output_layout *layout,
|
||||
struct wlr_output *output);
|
||||
|
||||
/**
|
||||
|
|
|
@ -165,7 +165,7 @@ static struct wlr_output_layout_output *output_layout_output_create(
|
|||
return l_output;
|
||||
}
|
||||
|
||||
static bool output_layout_add(struct wlr_output_layout *layout,
|
||||
static struct wlr_output_layout_output *output_layout_add(struct wlr_output_layout *layout,
|
||||
struct wlr_output *output, int lx, int ly,
|
||||
bool auto_configured) {
|
||||
struct wlr_output_layout_output *l_output =
|
||||
|
@ -174,7 +174,7 @@ static bool output_layout_add(struct wlr_output_layout *layout,
|
|||
if (is_new) {
|
||||
l_output = output_layout_output_create(layout, output);
|
||||
if (l_output == NULL) {
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -189,15 +189,15 @@ static bool output_layout_add(struct wlr_output_layout *layout,
|
|||
wl_signal_emit_mutable(&layout->events.add, l_output);
|
||||
}
|
||||
|
||||
return true;
|
||||
return l_output;
|
||||
}
|
||||
|
||||
bool wlr_output_layout_add(struct wlr_output_layout *layout,
|
||||
struct wlr_output_layout_output *wlr_output_layout_add(struct wlr_output_layout *layout,
|
||||
struct wlr_output *output, int lx, int ly) {
|
||||
return output_layout_add(layout, output, lx, ly, false);
|
||||
}
|
||||
|
||||
bool wlr_output_layout_add_auto(struct wlr_output_layout *layout,
|
||||
struct wlr_output_layout_output *wlr_output_layout_add_auto(struct wlr_output_layout *layout,
|
||||
struct wlr_output *output) {
|
||||
return output_layout_add(layout, output, 0, 0, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue