mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
wlr_output: Nuke wlr_output_update_enabled
This commit is contained in:
parent
63351cf81f
commit
568b1943b9
2 changed files with 1 additions and 12 deletions
|
@ -103,13 +103,6 @@ struct wlr_output_impl {
|
|||
void wlr_output_init(struct wlr_output *output, struct wlr_backend *backend,
|
||||
const struct wlr_output_impl *impl, struct wl_display *display,
|
||||
const struct wlr_output_state *state);
|
||||
/**
|
||||
* Update the current output status.
|
||||
*
|
||||
* The backend must call this function when the status is updated to notify
|
||||
* compositors about the change.
|
||||
*/
|
||||
void wlr_output_update_enabled(struct wlr_output *output, bool enabled);
|
||||
/**
|
||||
* Notify compositors that they need to submit a new frame in order to apply
|
||||
* output changes.
|
||||
|
|
|
@ -182,10 +182,6 @@ struct wlr_output *wlr_output_from_resource(struct wl_resource *resource) {
|
|||
return wl_resource_get_user_data(resource);
|
||||
}
|
||||
|
||||
void wlr_output_update_enabled(struct wlr_output *output, bool enabled) {
|
||||
output->enabled = enabled;
|
||||
}
|
||||
|
||||
static void output_update_matrix(struct wlr_output *output) {
|
||||
wlr_matrix_identity(output->transform_matrix);
|
||||
if (output->transform != WL_OUTPUT_TRANSFORM_NORMAL) {
|
||||
|
@ -298,7 +294,7 @@ static void output_apply_state(struct wlr_output *output,
|
|||
}
|
||||
|
||||
if (state->committed & WLR_OUTPUT_STATE_ENABLED) {
|
||||
wlr_output_update_enabled(output, state->enabled);
|
||||
output->enabled = state->enabled;
|
||||
}
|
||||
|
||||
bool scale_updated = state->committed & WLR_OUTPUT_STATE_SCALE;
|
||||
|
|
Loading…
Reference in a new issue