diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-27 05:48:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-27 05:48:45 -0500 |
commit | 6c2242e66be2dddb38559717e1a9054a55b8e6d1 (patch) | |
tree | 64518dfcb1e7eb9696716869535aed9f05d7b27d /include/wlr | |
parent | 47f9f91d157c9f650afe1172b3bb2d52def66a10 (diff) | |
parent | 43435d49150b87bbfafbae398dbde7ebfd9360dc (diff) |
Merge pull request #522 from emersion/fix-drm-output-transform-cursor
Fix cursor on transformed output with DRM backend
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_output.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index a974a154..8e4f5446 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -118,6 +118,19 @@ bool wlr_output_cursor_move(struct wlr_output_cursor *cursor, double x, double y); void wlr_output_cursor_destroy(struct wlr_output_cursor *cursor); -enum wl_output_transform wlr_output_transform_invert(enum wl_output_transform); + +/** + * Returns the transform that, when composed with `tr`, gives + * `WL_OUTPUT_TRANSFORM_NORMAL`. + */ +enum wl_output_transform wlr_output_transform_invert( + enum wl_output_transform tr); + +/** + * Returns a transform that, when applied, has the same effect as applying + * sequentially `tr_a` and `tr_b`. + */ +enum wl_output_transform wlr_output_transform_compose( + enum wl_output_transform tr_a, enum wl_output_transform tr_b); #endif |