summaryrefslogtreecommitdiff
path: root/libsn/sn-xmessages.c
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2009-01-28 15:35:10 +0100
committerJulien Danjou <julien@danjou.info>2009-04-03 12:57:27 +0200
commitfc12fced326e4f14af155b88b23dff04cba0d4f7 (patch)
treef3868c22c3c2752407ead4c4ac02753dc722fab1 /libsn/sn-xmessages.c
parent7f0c6f7f7485b53b23656fbaa5f28e73b35c5e0e (diff)
Only store Window in FindMessageData
This is enough, we do not need to store the full XEvent. Signed-off-by: Julien Danjou <julien@danjou.info>
Diffstat (limited to 'libsn/sn-xmessages.c')
-rw-r--r--libsn/sn-xmessages.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsn/sn-xmessages.c b/libsn/sn-xmessages.c
index c2fc8d1..e10e2f1 100644
--- a/libsn/sn-xmessages.c
+++ b/libsn/sn-xmessages.c
@@ -275,7 +275,7 @@ some_handler_handles_event (SnDisplay *display,
typedef struct
{
- XEvent *xevent;
+ Window window;
SnXmessage *message;
} FindMessageData;
@@ -286,7 +286,7 @@ find_message_foreach (void *value,
SnXmessage *message = value;
FindMessageData *fmd = data;
- if (fmd->xevent->xclient.window == message->xwindow)
+ if (fmd->window == message->xwindow)
{
fmd->message = message;
return FALSE;
@@ -312,7 +312,7 @@ add_event_to_messages (SnDisplay *display,
*/
#define MAX_MESSAGE_LENGTH 4096
- fmd.xevent = xevent;
+ fmd.window = xevent->xclient.window;
fmd.message = NULL;
sn_internal_display_get_xmessage_data (display, NULL,