summaryrefslogtreecommitdiff
path: root/libsn
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-10-20 21:52:48 +0000
committerHavoc Pennington <hp@redhat.com>2002-10-20 21:52:48 +0000
commit3fda9848b002bcfb5fc376bbf5d36bb0f7851c9c (patch)
tree8bb82eb835f89f8a5d17b5e7eb0c05bce3ee3128 /libsn
parent66be3ade5dbff18ce3d7f110a5dfb06d827148db (diff)
new docs, new proposed spec
Diffstat (limited to 'libsn')
-rw-r--r--libsn/sn-xmessages.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/libsn/sn-xmessages.c b/libsn/sn-xmessages.c
index 249c15b..61577e8 100644
--- a/libsn/sn-xmessages.c
+++ b/libsn/sn-xmessages.c
@@ -185,6 +185,13 @@ sn_internal_broadcast_xmessage (SnDisplay *display,
dest = &xevent.xclient.data.b[0];
dest_end = dest + 20;
+ if (src == message)
+ {
+ /* first byte is nul */
+ *dest = '\0';
+ ++dest;
+ }
+
while (dest != dest_end &&
src != src_end)
{
@@ -192,9 +199,12 @@ sn_internal_broadcast_xmessage (SnDisplay *display,
++dest;
++src;
}
-
- sn_internal_send_event_all_screens (display, PropertyChangeMask,
- &xevent);
+
+ XSendEvent (xdisplay,
+ target_xwindow,
+ False,
+ PropertyChangeMask,
+ &xevent);
}
}