mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-01 04:45:37 +00:00
Remove CursorItem::group_id
Now that the group_id is known to RedCursorCmd, we don't need to store it separately in CursorItem. Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
8091df87b3
commit
705be34b5e
@ -38,7 +38,6 @@ enum {
|
||||
|
||||
typedef struct CursorItem {
|
||||
QXLInstance *qxl;
|
||||
uint32_t group_id;
|
||||
int refs;
|
||||
RedCursorCmd *red_cursor;
|
||||
} CursorItem;
|
||||
@ -82,7 +81,7 @@ struct CursorChannelClient {
|
||||
#include "cache-item.tmpl.c"
|
||||
#undef CLIENT_CURSOR_CACHE
|
||||
|
||||
static CursorItem *cursor_item_new(QXLInstance *qxl, RedCursorCmd *cmd, uint32_t group_id)
|
||||
static CursorItem *cursor_item_new(QXLInstance *qxl, RedCursorCmd *cmd)
|
||||
{
|
||||
CursorItem *cursor_item;
|
||||
|
||||
@ -91,7 +90,6 @@ static CursorItem *cursor_item_new(QXLInstance *qxl, RedCursorCmd *cmd, uint32_t
|
||||
cursor_item = g_new0(CursorItem, 1);
|
||||
cursor_item->qxl = qxl;
|
||||
cursor_item->refs = 1;
|
||||
cursor_item->group_id = group_id;
|
||||
cursor_item->red_cursor = cmd;
|
||||
|
||||
return cursor_item;
|
||||
@ -477,8 +475,7 @@ CursorChannelClient* cursor_channel_client_new(CursorChannel *cursor, RedClient
|
||||
return ccc;
|
||||
}
|
||||
|
||||
void cursor_channel_process_cmd(CursorChannel *cursor, RedCursorCmd *cursor_cmd,
|
||||
uint32_t group_id)
|
||||
void cursor_channel_process_cmd(CursorChannel *cursor, RedCursorCmd *cursor_cmd)
|
||||
{
|
||||
CursorItem *cursor_item;
|
||||
int cursor_show = FALSE;
|
||||
@ -486,8 +483,7 @@ void cursor_channel_process_cmd(CursorChannel *cursor, RedCursorCmd *cursor_cmd,
|
||||
spice_return_if_fail(cursor);
|
||||
spice_return_if_fail(cursor_cmd);
|
||||
|
||||
cursor_item = cursor_item_new(cursor->common.qxl,
|
||||
cursor_cmd, group_id);
|
||||
cursor_item = cursor_item_new(cursor->common.qxl, cursor_cmd);
|
||||
|
||||
switch (cursor_cmd->type) {
|
||||
case QXL_CURSOR_SET:
|
||||
|
||||
@ -34,8 +34,7 @@ CursorChannel* cursor_channel_new (RedWorker *worker);
|
||||
void cursor_channel_disconnect (CursorChannel *cursor_channel);
|
||||
void cursor_channel_reset (CursorChannel *cursor);
|
||||
void cursor_channel_init (CursorChannel *cursor, CursorChannelClient* client);
|
||||
void cursor_channel_process_cmd (CursorChannel *cursor, RedCursorCmd *cursor_cmd,
|
||||
uint32_t group_id);
|
||||
void cursor_channel_process_cmd (CursorChannel *cursor, RedCursorCmd *cursor_cmd);
|
||||
void cursor_channel_set_mouse_mode(CursorChannel *cursor, uint32_t mode);
|
||||
|
||||
CursorChannelClient* cursor_channel_client_new(CursorChannel *cursor,
|
||||
|
||||
@ -174,7 +174,7 @@ static int red_process_cursor(RedWorker *worker, int *ring_is_empty)
|
||||
break;
|
||||
}
|
||||
|
||||
cursor_channel_process_cmd(worker->cursor_channel, cursor, ext_cmd.group_id);
|
||||
cursor_channel_process_cmd(worker->cursor_channel, cursor);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@ -1161,7 +1161,7 @@ static int loadvm_command(RedWorker *worker, QXLCommandExt *ext)
|
||||
free(cursor_cmd);
|
||||
return FALSE;
|
||||
}
|
||||
cursor_channel_process_cmd(worker->cursor_channel, cursor_cmd, ext->group_id);
|
||||
cursor_channel_process_cmd(worker->cursor_channel, cursor_cmd);
|
||||
break;
|
||||
case QXL_CMD_SURFACE:
|
||||
surface_cmd = spice_new0(RedSurfaceCmd, 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user