From 00f824e21dcc458ce4ccddfa5a4e419cb852283e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 15 Jun 2008 20:12:49 +0200 Subject: [PATCH] systray: fix send_event on init Signed-off-by: Julien Danjou --- systray.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/systray.c b/systray.c index 81cc2a44..367a6c61 100644 --- a/systray.c +++ b/systray.c @@ -52,12 +52,13 @@ systray_init(int phys_screen) -1, -1, 1, 1, 0); /* Fill event */ + ev.response_type = XCB_CLIENT_MESSAGE; ev.format = 32; ev.data.data32[0] = XCB_CURRENT_TIME; ev.data.data32[2] = globalconf.screens[phys_screen].systray->window; ev.data.data32[3] = ev.data.data32[4] = 0; - ev.response_type = xutil_intern_atom_reply(globalconf.connection, - &globalconf.atoms, atom_manager_q); + ev.type = xutil_intern_atom_reply(globalconf.connection, + &globalconf.atoms, atom_manager_q); ev.data.data32[1] = atom_systray = xutil_intern_atom_reply(globalconf.connection, &globalconf.atoms,