|
Petr Hracek |
e70c48 |
diff --git a/src/xselect.c b/src/xselect.c
|
|
Petr Hracek |
e70c48 |
index b3017c3..4ba4984 100644
|
|
Petr Hracek |
e70c48 |
--- a/src/xselect.c
|
|
Petr Hracek |
e70c48 |
+++ b/src/xselect.c
|
|
Petr Hracek |
e70c48 |
@@ -2659,6 +2659,8 @@ x_send_client_event (Lisp_Object display, Lisp_Object dest, Lisp_Object from,
|
|
Petr Hracek |
e70c48 |
|
|
Petr Hracek |
e70c48 |
block_input ();
|
|
Petr Hracek |
e70c48 |
|
|
Petr Hracek |
e70c48 |
+ event.xclient.send_event = True;
|
|
Petr Hracek |
e70c48 |
+ event.xclient.serial = 0;
|
|
Petr Hracek |
e70c48 |
event.xclient.message_type = message_type;
|
|
Petr Hracek |
e70c48 |
event.xclient.display = dpyinfo->display;
|
|
Petr Hracek |
e70c48 |
|
|
Petr Hracek |
e70c48 |
@@ -2667,18 +2669,19 @@ x_send_client_event (Lisp_Object display, Lisp_Object dest, Lisp_Object from,
|
|
Petr Hracek |
e70c48 |
event.xclient.window = to_root ? FRAME_OUTER_WINDOW (f) : wdest;
|
|
Petr Hracek |
e70c48 |
|
|
Petr Hracek |
e70c48 |
|
|
Petr Hracek |
e70c48 |
- memset (event.xclient.data.b, 0, sizeof (event.xclient.data.b));
|
|
Petr Hracek |
e70c48 |
+ memset (event.xclient.data.l, 0, sizeof (event.xclient.data.l));
|
|
Petr Hracek |
e70c48 |
x_fill_property_data (dpyinfo->display, values, event.xclient.data.b,
|
|
Petr Hracek |
e70c48 |
event.xclient.format);
|
|
Petr Hracek |
e70c48 |
|
|
Petr Hracek |
e70c48 |
/* If event mask is 0 the event is sent to the client that created
|
|
Petr Hracek |
e70c48 |
the destination window. But if we are sending to the root window,
|
|
Petr Hracek |
e70c48 |
- there is no such client. Then we set the event mask to 0xffff. The
|
|
Petr Hracek |
e70c48 |
+ there is no such client. Then we set the event mask to 0xffffff. The
|
|
Petr Hracek |
e70c48 |
event then goes to clients selecting for events on the root window. */
|
|
Petr Hracek |
e70c48 |
x_catch_errors (dpyinfo->display);
|
|
Petr Hracek |
e70c48 |
{
|
|
Petr Hracek |
e70c48 |
int propagate = to_root ? False : True;
|
|
Petr Hracek |
e70c48 |
- unsigned mask = to_root ? 0xffff : 0;
|
|
Petr Hracek |
e70c48 |
+ long mask = to_root ? 0xffffff : 0;
|
|
Petr Hracek |
e70c48 |
+
|
|
Petr Hracek |
e70c48 |
XSendEvent (dpyinfo->display, wdest, propagate, mask, &event);
|
|
Petr Hracek |
e70c48 |
XFlush (dpyinfo->display);
|
|
Petr Hracek |
e70c48 |
}
|