[broadway] Remove unused query pointer message

This commit is contained in:
Alexander Larsson 2011-04-05 10:52:40 +02:00
parent 5b645357d6
commit e1dcd6735e
5 changed files with 0 additions and 51 deletions

View File

@ -650,24 +650,6 @@ broadway_output_copy_rectangles (BroadwayOutput *output, int id,
free (buf);
}
guint32
broadway_output_query_pointer (BroadwayOutput *output, int id)
{
char buf[HEADER_LEN + 3];
guint32 serial;
int p;
serial = output->serial;
p = write_header (output, buf, 'q');
append_uint16 (id, buf, &p);
assert (p == sizeof (buf));
broadway_output_write (output, buf, sizeof (buf));
return serial;
}
void
broadway_output_grab_pointer (BroadwayOutput *output,
int id,

View File

@ -57,8 +57,6 @@ void broadway_output_copy_rectangles (BroadwayOutput *output,
int n_rects,
int dx,
int dy);
guint32 broadway_output_query_pointer (BroadwayOutput *output,
int id);
void broadway_output_grab_pointer (BroadwayOutput *output,
int id,
gboolean owner_event);

View File

@ -348,15 +348,6 @@ function handleCommands(cmdObj)
flushSurface(surfaces[id]);
break;
case 'q': // Query pointer
var id = base64_16(cmd, i);
i = i + 3;
var pos = getPositionsFromAbsCoord(lastX, lastY, id);
sendInput ("q", [pos.rootX, pos.rootY, pos.winX, pos.winY, windowWithMouse]);
break;
case 'g': // Grab
var id = base64_16(cmd, i);
i = i + 3;

View File

@ -248,18 +248,6 @@ parse_input_message (BroadwayInput *input, const char *message)
msg.grab_reply.res = strtol(p, &p, 10);
break;
case 'q':
msg.query_reply.root_x = strtol(p, &p, 10);
p++; /* Skip , */
msg.query_reply.root_y = strtol(p, &p, 10);
p++; /* Skip , */
msg.query_reply.win_x = strtol(p, &p, 10);
p++; /* Skip , */
msg.query_reply.win_y = strtol(p, &p, 10);
p++; /* Skip , */
msg.query_reply.window_with_mouse = strtol(p, &p, 10);
break;
default:
g_printerr ("Unknown input command %s\n", message);
break;

View File

@ -87,15 +87,6 @@ typedef struct {
int res;
} BroadwayInputGrabReply;
typedef struct {
BroadwayInputBaseMsg base;
int root_x;
int root_y;
int win_x;
int win_y;
guint32 window_with_mouse;
} BroadwayInputQueryReply;
typedef union {
BroadwayInputBaseMsg base;
BroadwayInputPointerMsg pointer;
@ -104,7 +95,6 @@ typedef union {
BroadwayInputScrollMsg scroll;
BroadwayInputKeyMsg key;
BroadwayInputGrabReply grab_reply;
BroadwayInputQueryReply query_reply;
} BroadwayInputMsg;
struct _GdkBroadwayDisplay