8 Commits

Author SHA1 Message Date
Guido Cella
49b1aa5848 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
831e910b94 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
b20dcd2800 update unclutter 2024-03-11 18:55:39 +01:00
Guido Cella
403548b562 update unclutter 2024-03-11 18:48:08 +01:00
Guido Cella
e8ff67c6c0 update unclutter 2024-02-09 14:58:59 +01:00
Guido Cella
713487ebcd update unclutter 2024-02-05 13:28:05 +01:00
Guido Cella
db78ce728d update unclutter
Make it compatible with the newly merged virtual pointer protocol.
2024-01-25 19:19:51 +01:00
Ben Collerson
8ee7ec27a1 add unclutter patch 2024-01-02 23:39:59 +10:00