Skip to content

Negative coordinate on a vc4 cursor plane is causing giant cursor to be displayed  #3735

@schauveau

Description

@schauveau

I discovered that strange behavior while trying to enable 2 monitors for RPi4 in wlroot (swaywm/wlroots#1943). When a vc4 drm cursor plane is set to a negative position larger than its size (so it should be completely invisible) then the giant version appears on screen. Negative coordinates are unusual but not illegal.

Here is a video showing the effect https://youtu.be/58-KTXcXwoE

In most clients, the cursor plane is automatically disabled when it leaves the screen so the best way to reproduce the problem is probably to edit the sources of an existing X11 or Wayland compositor by adding a negative offset to the cursor plane coordinates. The video was obtained with sway/wlroot by subtracting 100 from conn->cursor_x at https://github.com/swaywm/wlroots/blob/751a21d94f1b4f0345d040ddfd54b723631d5991/backend/drm/atomic.c#L234

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions