Cloudef / wlc

High-level Wayland compositor library
MIT License
331 stars 58 forks source link

Added v2 pointer motion interface #274

Closed ascent12 closed 7 years ago

ascent12 commented 7 years ago

This fixes #181 by adding an interface where we use doubles instead of integers, so we don't accidentally round down and lose small motions.

Tested against https://github.com/ascent12/sway/commit/c29e5bbde84260763eaece5b47c219fd1fff7883

ddevault commented 7 years ago

Thanks!

mikkeloscar commented 7 years ago

I believe this is missing the equivalent of this: https://github.com/Cloudef/wlc/blob/master/src/wlc.c#L519-L523 for the v2 callback.

ascent12 commented 7 years ago

Oh damn, you're right. I realised I didn't add it after my first commit when I tested it, but forgot to commit it afterwards. That was careless. I'll open a new PR.

ddevault commented 7 years ago

Whoops! I should have caught that too.