aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-22 11:19:46 -0400
committerDrew DeVault <sir@cmpwn.com>2017-06-22 11:19:46 -0400
commitbb16025318e1c3d3844e71e6e8f29b1e8634ec3e (patch)
treed4f14ad28560fdcc7534a049d1a6c13c488b6a54
parentf5423a51b559a0fc0d51f7a11cdaf82789a058c9 (diff)
Fix issues with projection on drm backend
-rw-r--r--types/wlr_output.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 6daac31c..5e7f9288 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -89,8 +89,11 @@ bool wlr_output_set_mode(struct wlr_output *output, struct wlr_output_mode *mode
if (!output->impl || !output->impl->set_mode) {
return false;
}
- wlr_output_update_matrix(output);
- return output->impl->set_mode(output->state, mode);
+ bool result = output->impl->set_mode(output->state, mode);
+ if (result) {
+ wlr_output_update_matrix(output);
+ }
+ return result;
}
void wlr_output_transform(struct wlr_output *output,