From 39fd53606a6efe7adee85203c0b623879663b4c8 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Mon, 2 Jan 2012 11:36:37 +0000 Subject: [PATCH] Really use 32-bits values within client messages --- src/message.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/message.c b/src/message.c index 0af7d9c..8b0e93b 100644 --- a/src/message.c +++ b/src/message.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2011 Pierre Pronchery */ +/* Copyright (c) 2012 Pierre Pronchery */ /* This file is part of DeforaOS Desktop libDesktop */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -69,10 +69,10 @@ int desktop_message_send(char const * destination, uint32_t value1, client->window = NULL; client->send_event = TRUE; client->message_type = gdk_atom_intern(destination, FALSE); - client->data_format = 8; - client->data.b[0] = value1; - client->data.b[1] = value2; - client->data.b[2] = value3; + client->data_format = 32; + client->data.l[0] = value1; + client->data.l[1] = value2; + client->data.l[2] = value3; gdk_event_send_clientmessage_toall(&event); return 0; } @@ -94,9 +94,9 @@ static GdkFilterReturn _desktop_message_on_callback(GdkXEvent * xevent, if(xev->type != ClientMessage) return GDK_FILTER_CONTINUE; xcme = &xev->xclient; - value1 = xcme->data.b[0]; - value2 = xcme->data.b[1]; - value3 = xcme->data.b[2]; + value1 = xcme->data.l[0]; + value2 = xcme->data.l[1]; + value3 = xcme->data.l[2]; if(mc->callback(mc->data, value1, value2, value3) == 0) return GDK_FILTER_CONTINUE; free(mc);