aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-06-27 12:32:39 -0400
committerSimon Ser <contact@emersion.fr>2023-08-16 18:37:55 +0200
commit568b1943b9d1e35ce2c6e39d4d7d1014ec06ba3b (patch)
treec5da9bb408c9d01a71f1922e92daabb733e5a5a7
parent63351cf81f8eee563971a87719b1294e45d1a4bd (diff)
wlr_output: Nuke wlr_output_update_enabled
-rw-r--r--include/wlr/interfaces/wlr_output.h7
-rw-r--r--types/output/output.c6
2 files changed, 1 insertions, 12 deletions
diff --git a/include/wlr/interfaces/wlr_output.h b/include/wlr/interfaces/wlr_output.h
index 2d8cd833..a5131297 100644
--- a/include/wlr/interfaces/wlr_output.h
+++ b/include/wlr/interfaces/wlr_output.h
@@ -104,13 +104,6 @@ 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.
*/
diff --git a/types/output/output.c b/types/output/output.c
index e2ac5dc8..d1fda35e 100644
--- a/types/output/output.c
+++ b/types/output/output.c
@@ -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;