summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdk/broadway/broadway.c18
-rw-r--r--gdk/broadway/broadway.h2
-rw-r--r--gdk/broadway/broadway.js9
-rw-r--r--gdk/broadway/gdkdisplay-broadway.c12
-rw-r--r--gdk/broadway/gdkdisplay-broadway.h10
5 files changed, 0 insertions, 51 deletions
diff --git a/gdk/broadway/broadway.c b/gdk/broadway/broadway.c
index 604d18b23e..0ddefde3b9 100644
--- a/gdk/broadway/broadway.c
+++ b/gdk/broadway/broadway.c
@@ -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,
diff --git a/gdk/broadway/broadway.h b/gdk/broadway/broadway.h
index 0b9e9da584..ab8eae6240 100644
--- a/gdk/broadway/broadway.h
+++ b/gdk/broadway/broadway.h
@@ -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);
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 70c116420d..4b1cb3259e 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -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;
diff --git a/gdk/broadway/gdkdisplay-broadway.c b/gdk/broadway/gdkdisplay-broadway.c
index 16bd99e225..ae2d964aa3 100644
--- a/gdk/broadway/gdkdisplay-broadway.c
+++ b/gdk/broadway/gdkdisplay-broadway.c
@@ -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;
diff --git a/gdk/broadway/gdkdisplay-broadway.h b/gdk/broadway/gdkdisplay-broadway.h
index 25b0397a93..b791579e50 100644
--- a/gdk/broadway/gdkdisplay-broadway.h
+++ b/gdk/broadway/gdkdisplay-broadway.h
@@ -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