Don't send custom mode info twice on DRM refresh

This commit is contained in:
Timidger 2017-12-28 11:12:26 -06:00
parent f56ce11aa0
commit 6e9cef4ed6
No known key found for this signature in database
GPG Key ID: 42EF7ECE5FEF1D17
1 changed files with 1 additions and 10 deletions

View File

@ -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) { if (!output->impl || !output->impl->set_custom_mode) {
return false; return false;
} }
bool result = output->impl->set_custom_mode(output, width, height, refresh); return 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;
} }
void wlr_output_update_mode(struct wlr_output *output, void wlr_output_update_mode(struct wlr_output *output,