summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2005-03-08 02:53:36 +0000
committerAlan Coopersmith <alan.coopersmith@sun.com>2005-03-08 02:53:36 +0000
commit0ce5950a08b9ab23ca8a32effdd40c421e92df84 (patch)
tree4a25e81fe7d68942181c6247d18d7402d48c4653
parentdf341cd2f2f263f13323e8c0936ea8aa0d7fbba1 (diff)
Bugzilla Bug 2006 (https://bugs.freedesktop.org/show_bug.cgi?id=2006) Patch #2031 (https://bugs.freedesktop.org/attachment.cgi?id=2031) XEmbed client doesn't receive key events from XIM: Use | to set a bit, not &. Patch by Hidetoshi Tajima <hidetoshi.tajima@sun.com>.
-rw-r--r--modules/im/ximcp/imEvToWire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/im/ximcp/imEvToWire.c b/modules/im/ximcp/imEvToWire.c
index 3aba0eba..8e37dc64 100644
--- a/modules/im/ximcp/imEvToWire.c
+++ b/modules/im/ximcp/imEvToWire.c
@@ -408,7 +408,7 @@ _XimProtoEventToWire(
}
/* Common process */
if (((XAnyEvent *)re)->send_event)
- event->u.u.type &= 0x80;
+ event->u.u.type |= 0x80;
event->u.u.sequenceNumber =
((XAnyEvent *)re)->serial & ~((unsigned long)0xffff);
event->u.u.sequenceNumber = sw16(event->u.u.sequenceNumber, sw);