summaryrefslogtreecommitdiff
path: root/hw/xwin/winmultiwindowwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xwin/winmultiwindowwm.c')
-rw-r--r--hw/xwin/winmultiwindowwm.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c
index befa0e772..95df867e6 100644
--- a/hw/xwin/winmultiwindowwm.c
+++ b/hw/xwin/winmultiwindowwm.c
@@ -514,9 +514,30 @@ GetWindowName(Display * pDisplay, Window iWin, char **ppWindowName)
static int
SendXMessage(Display * pDisplay, Window iWin, Atom atmType, long nData)
{
+#ifdef __x86_64__
+ union {
+ int type;
+ struct {
+ int type;
+ unsigned long serial;
+ Bool send_event;
+ Display *display;
+ unsigned long window;
+ unsigned long message_type;
+ int format;
+ union {
+ char b[20];
+ short s[10];
+ long l[5];
+ } data;
+ } xclient;
+ } e;
+#else
XEvent e;
+#endif
/* Prepare the X event structure */
+ memset(&e, 0, sizeof(e));
e.type = ClientMessage;
e.xclient.window = iWin;
e.xclient.message_type = atmType;