8 Commits

Author SHA1 Message Date
Guido Cella
185967aa4f update unclutter
Remember the last cursor shape when restoring the cursor.

Remove the condition that returns early when a pointer constraint is
active because it is not necessary now that pointer focus is no longer
cleared.

I didn't call wlr_seat_pointer_notify_enter() while the cursor is hidden
to avoid restoring it, but this is no longer necessary now that
setcursor() and setcursorshape() don't change the cursor while it is
hidden: those calls were what restored the cursor.

By calling wlr_seat_pointer_notify_enter() even when the cursor is
hidden, we no longer have to manually restore pointer focus when the
cursor is restored.
2024-04-06 08:03:47 +02:00
Guido Cella
9a37e365ad update unclutter
Don't clear the pointer focus when hiding the cursor. This was annoying
because if you e.g. had the cursor over a spoiler tag it becomes black
again after the timeout, or if the cursor was opening a popup by
hovering over a button the popup disappears after the timeout.

Not clearing the pointer focus requires adding a check when changing the
cursor image to not make the cursor reappear when it does. Skipping the
image change results in having the old cursor image if it changed while
the cursor was hidden, until it is changed again. Don't keep track of
the last cursor image for simplicity.
2024-03-28 07:50:51 +01:00
Guido Cella
c7ee39fb2c update unclutter 2024-03-11 18:55:39 +01:00
Guido Cella
7ee501eaea update unclutter 2024-03-11 18:48:08 +01:00
Guido Cella
6981befe48 update unclutter 2024-02-09 14:58:59 +01:00
Guido Cella
e2b487ee47 update unclutter 2024-02-05 13:28:05 +01:00
Guido Cella
ff1c7e351e update unclutter
Make it compatible with the newly merged virtual pointer protocol.
2024-01-25 19:19:51 +01:00
Ben Collerson
68cd02b384 add unclutter patch 2024-01-02 23:39:59 +10:00