-
Notifications
You must be signed in to change notification settings - Fork 341
output: fix cursor surface position handling #1074
output: fix cursor surface position handling #1074
Conversation
https://github.com/nobled/wayland/blob/master/protocol/wayland.xml#L790 I think we need to move the hotspot instead of moving the actual cursor. |
Can you provide a test case to demonstrate what you are trying to fix? |
Here's a test case: https://github.com/emersion/wleird/blob/master/cursor.c wlroots seems broken in very weird ways when setting a buffer position. It seems the old cursor surface doesn't get cleared. |
On commit, the surface position is a delta in surface-local coordinates.
515c36d
to
9feed67
Compare
It doesn't change the result, but I think you aren't damaging the surface right in your example.
|
Hmm. You're probably right, I was assuming |
I don't know now. weston-dnd does this for drag icons:
|
Yeah, after discussing on #wayland, the surface damage is relative to the top-left corner of the buffer, after applying the buffer translation.
|
Closing in favor of #1076 |
This is not how it works.
s{x,y}
are supposed to be added to the current position on commit.