[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); 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 void
broadway_output_grab_pointer (BroadwayOutput *output, broadway_output_grab_pointer (BroadwayOutput *output,
int id, int id,

View File

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

View File

@ -348,15 +348,6 @@ function handleCommands(cmdObj)
flushSurface(surfaces[id]); flushSurface(surfaces[id]);
break; 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 case 'g': // Grab
var id = base64_16(cmd, i); var id = base64_16(cmd, i);
i = i + 3; 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); msg.grab_reply.res = strtol(p, &p, 10);
break; 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: default:
g_printerr ("Unknown input command %s\n", message); g_printerr ("Unknown input command %s\n", message);
break; break;

View File

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