systray: fix send_event on init

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-15 20:12:49 +02:00
parent 5c50da78be
commit 00f824e21d
1 changed files with 3 additions and 2 deletions

View File

@ -52,12 +52,13 @@ systray_init(int phys_screen)
-1, -1, 1, 1, 0); -1, -1, 1, 1, 0);
/* Fill event */ /* Fill event */
ev.response_type = XCB_CLIENT_MESSAGE;
ev.format = 32; ev.format = 32;
ev.data.data32[0] = XCB_CURRENT_TIME; ev.data.data32[0] = XCB_CURRENT_TIME;
ev.data.data32[2] = globalconf.screens[phys_screen].systray->window; ev.data.data32[2] = globalconf.screens[phys_screen].systray->window;
ev.data.data32[3] = ev.data.data32[4] = 0; ev.data.data32[3] = ev.data.data32[4] = 0;
ev.response_type = xutil_intern_atom_reply(globalconf.connection, ev.type = xutil_intern_atom_reply(globalconf.connection,
&globalconf.atoms, atom_manager_q); &globalconf.atoms, atom_manager_q);
ev.data.data32[1] = atom_systray = xutil_intern_atom_reply(globalconf.connection, ev.data.data32[1] = atom_systray = xutil_intern_atom_reply(globalconf.connection,
&globalconf.atoms, &globalconf.atoms,