mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
xembed: simplify
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
00f824e21d
commit
67de549992
1 changed files with 1 additions and 3 deletions
|
@ -60,7 +60,6 @@ xembed_message_send(xcb_connection_t *connection, xcb_window_t towin,
|
|||
{
|
||||
xcb_client_message_event_t ev;
|
||||
xutil_intern_atom_request_t atom_q;
|
||||
xcb_atom_t atom;
|
||||
|
||||
/** \todo use atom cache */
|
||||
atom_q = xutil_intern_atom(connection, NULL, "_XEMBED");
|
||||
|
@ -73,8 +72,7 @@ xembed_message_send(xcb_connection_t *connection, xcb_window_t towin,
|
|||
ev.data.data32[2] = d1;
|
||||
ev.data.data32[3] = d2;
|
||||
ev.data.data32[4] = d3;
|
||||
atom = xutil_intern_atom_reply(connection, NULL, atom_q);
|
||||
ev.type = atom;
|
||||
ev.type = xutil_intern_atom_reply(connection, NULL, atom_q);
|
||||
xcb_send_event(connection, false, towin, XCB_EVENT_MASK_NO_EVENT, (char *) &ev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue