backend/xcursor: Support a "blank" cursor type

We don't have enough Xlib code in mutter ...

Joking aside, it can be useful to make the cursor invisible
without hiding it, for example for replacing the actual cursor
with an actor in gnome-shell; the real cursor should still
update the focus surface in that case, and not sneak into
screenshots or -casts.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1244
This commit is contained in:
Florian Müllner
2020-05-08 19:00:05 +02:00
committed by Georges Basile Stavracas Neto
parent c42c11583d
commit 106d332c71
2 changed files with 51 additions and 0 deletions

View File

@ -204,6 +204,7 @@ typedef enum
* @META_CURSOR_POINTING_HAND: pointing hand
* @META_CURSOR_CROSSHAIR: crosshair (action forbidden)
* @META_CURSOR_IBEAM: I-beam (text input)
* @META_CURSOR_BLANK: Invisible cursor
*/
typedef enum
{
@ -226,6 +227,7 @@ typedef enum
META_CURSOR_POINTING_HAND,
META_CURSOR_CROSSHAIR,
META_CURSOR_IBEAM,
META_CURSOR_BLANK,
META_CURSOR_LAST
} MetaCursor;