wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

Wayfire wlr_virtual_pointer_v1_new_pointer_event ignores suggested seat and output

Open kode54 opened this issue 2 years ago • 3 comments

Describe the bug Wayfire's new virtual pointer event handler ignores the suggested seat and output parameters completely, which breaks single output pointer constraints by anyvnc.

https://github.com/any1/wayvnc/blob/master/src/main.c#L985-L987

To Reproduce Steps to reproduce the behavior:

  1. Start Wayfire with multiple outputs.
  2. Start anyvnc on one of those outputs.
  3. Cursor is spread across all outputs.

Expected behavior Cursor is constrained to the suggested output, or even just seat.

Wayfire version git: e83f1f6fb271911e74a404784a8699d45a525095

Notes There are two messages for creating a new virtual pointer, one which can specify the seat it belongs to, and an extended function that can also specify the output it should belong to. AnyVNC uses the latter to constrain the client cursor to the requested output to be remoted into. Currently Wayfire ignores both of these hint variables and just treats all virtual pointers as a full surface space according to all active outputs.

Related issues https://github.com/any1/wayvnc/issues/64

kode54 avatar Sep 13 '21 00:09 kode54