aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-11-28 21:10:52 -0500
committerGitHub <noreply@github.com>2017-11-28 21:10:52 -0500
commit5649544a1499556e2b45abc168e634ee22511687 (patch)
treeb70fb22268e6052bffb312c525f7f0ba9cbf229c
parent57a304c750d18fe52b7e06eb60a2eb410afe2b52 (diff)
parent0781f6e483c0dd40996d8fcb541b04991b144e48 (diff)
Merge pull request #449 from emersion/fix-hw-cursor-pos
Fix initial hardware cursor position
-rw-r--r--types/wlr_output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 94fe4c3b..56a2a7df 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -356,6 +356,10 @@ bool wlr_output_cursor_set_image(struct wlr_output_cursor *cursor,
if (cursor->output->hardware_cursor == NULL &&
cursor->output->impl->set_cursor) {
+ if (cursor->output->impl->move_cursor) {
+ cursor->output->impl->move_cursor(cursor->output,
+ (int)cursor->x, (int)cursor->y);
+ }
int ok = cursor->output->impl->set_cursor(cursor->output, pixels,
stride, width, height, hotspot_x, hotspot_y, true);
if (ok) {