mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
output: remove ported wlr_output functions
We have several wlr_output_* functions which are just wrappers around corresponding wlr_output_state_* functions and don't actually touch the wlr_output itself. These probably made some sense historically, but IMHO they are just confusing now. So remove them and call wlr_output_state_* directly. Rename wlr_output_commit() (still useful) to output_state_commit().
This commit is contained in:
parent
45a9bd95e7
commit
7912665b0f
7 changed files with 50 additions and 117 deletions
|
|
@ -178,8 +178,8 @@ handle_drm_lease_request(struct wl_listener *listener, void *data)
|
|||
continue;
|
||||
}
|
||||
|
||||
wlr_output_enable(output->wlr_output, false);
|
||||
wlr_output_commit(output->wlr_output);
|
||||
wlr_output_state_set_enabled(&output->pending, false);
|
||||
output_state_commit(output);
|
||||
|
||||
wlr_output_layout_remove(output->server->output_layout,
|
||||
output->wlr_output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue