aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimidger <APragmaticPlace@gmail.com>2017-12-28 11:12:26 -0600
committerTimidger <APragmaticPlace@gmail.com>2017-12-28 11:12:44 -0600
commit6e9cef4ed69100241a52b158539d7be9ec413c55 (patch)
treec459c38deae098b5b8ac466c751938a006bb965c
parentf56ce11aa0d872464ef6d9601b09022e8e68ecd7 (diff)
Don't send custom mode info twice on DRM refresh
-rw-r--r--types/wlr_output.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index b6f35da8..46db98b3 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -171,16 +171,7 @@ bool wlr_output_set_custom_mode(struct wlr_output *output, int32_t width,
if (!output->impl || !output->impl->set_custom_mode) {
return false;
}
- bool result = output->impl->set_custom_mode(output, width, height, refresh);
- if (result) {
- wlr_output_update_matrix(output);
-
- struct wl_resource *resource;
- wl_resource_for_each(resource, &output->wl_resources) {
- wlr_output_send_current_mode_to_resource(resource);
- }
- }
- return result;
+ return output->impl->set_custom_mode(output, width, height, refresh);
}
void wlr_output_update_mode(struct wlr_output *output,