systray: fix send_event on init
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
5c50da78be
commit
00f824e21d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue