Skip to content

Commit

Permalink
Introduce MSG_CURSOR (VM to GUI)
Browse files Browse the repository at this point in the history
See QubesOS/qubes-issues#1551.

The message contains a cursor ID to be set for a given window.
  • Loading branch information
pwmarcz committed Mar 27, 2020
1 parent e22bc16 commit 900f592
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion include/qubes-gui-protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,19 @@ typedef unsigned __int32 uint32_t;
/* version of protocol described in this file, used as gui-daemon protocol
* version; specific agent defines own version which them support */
#define QUBES_GUID_PROTOCOL_VERSION_MAJOR 1
#define QUBES_GUID_PROTOCOL_VERSION_MINOR 2
#define QUBES_GUID_PROTOCOL_VERSION_MINOR 3
#define QUBES_GUID_PROTOCOL_VERSION (QUBES_GUID_PROTOCOL_VERSION_MAJOR << 16 | QUBES_GUID_PROTOCOL_VERSION_MINOR)

//arbitrary
#define MAX_CLIPBOARD_SIZE 65000
#define MAX_WINDOW_WIDTH 16384
#define MAX_WINDOW_HEIGHT 6144

//cursor IDs
#define CURSOR_DEFAULT 0
#define CURSOR_X11 0x100 // use CURSOR_X11 + XC_* (from X11/cursorfont.h)
#define CURSOR_X11_MAX 0x19a // CURSOR_X11 + XC_num_glyphs

//not arbitrary
#define DUMMY_DRV_FB_BPP 32
#define SIZEOF_SHARED_MFN (sizeof(((struct shm_cmd*)0)->mfns[0]))
Expand Down Expand Up @@ -93,6 +98,7 @@ enum {
MSG_WINDOW_FLAGS,
MSG_WMCLASS,
MSG_WINDOW_DUMP,
MSG_CURSOR,
MSG_MAX
};
/* VM -> Dom0, Dom0 -> VM */
Expand Down Expand Up @@ -234,6 +240,11 @@ struct msg_window_dump_hdr {
uint32_t bpp;
};

/* VM -> Dom0 */
struct msg_cursor {
uint32_t cursor;
};

enum {
WINDOW_DUMP_TYPE_GRANT_REFS
};
Expand Down

0 comments on commit 900f592

Please sign in to comment.