Skip to content

Color picker cannot leave the bounds of the canvas on Wayland #25

@noahc3

Description

@noahc3

On Wayland, the color picker tool can only be used within the bounds of the canvas area. The mouse is not tracked outside of the canvas.

Notes:

  • The canvas appears to use some form of sub-window, probably because its rendered using native code
  • The color picker tool appears to either be part of the sub-window or is another sub-window on the canvas sub-window
  • Wayland does not allow applications to track mouse movements or draw outside of its window bounds, so the color picker is effectively locked to the bounds of the canvas. It cannot pick color from elsewhere in the Affinity window and it cannot pick color elsewhere on the desktop

A solution would require implementing support for xdg-desktop-portal PickColor service, effectively replacing the functionality of the built-in color picker. I will investigate the feasibility of this. In the event its feasible and I move forward with an implementation, it would be strictly optional and likely opt-in as the quality of this feature would vary greatly by DE/WM/compositor as the implementation is system level.

Metadata

Metadata

Assignees

Labels

wf-patchFor bugs that we'd like to patch in WineFixwinefix

Projects

Status

In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions