mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-05 13:29:47 -05:00
output: make wlr_output_enable return a bool
This commit is contained in:
parent
769a8e9917
commit
cb293f09e7
5 changed files with 16 additions and 10 deletions
|
|
@ -142,14 +142,15 @@ static void output_update_matrix(struct wlr_output *output) {
|
|||
output->height, output->transform);
|
||||
}
|
||||
|
||||
void wlr_output_enable(struct wlr_output *output, bool enable) {
|
||||
bool wlr_output_enable(struct wlr_output *output, bool enable) {
|
||||
if (output->enabled == enable) {
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (output->impl->enable) {
|
||||
output->impl->enable(output, enable);
|
||||
return output->impl->enable(output, enable);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wlr_output_set_mode(struct wlr_output *output,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue