systray: check for embedder window on startup
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
70dbe7bc4d
commit
6f9d196e67
|
@ -41,7 +41,7 @@ xembed_window_unembed(xcb_connection_t *connection, xcb_window_t child, xcb_wind
|
|||
* \param client The client to send message to.
|
||||
*/
|
||||
static inline void
|
||||
xembed_focus_out (xcb_connection_t *c, xcb_window_t client)
|
||||
xembed_focus_out(xcb_connection_t *c, xcb_window_t client)
|
||||
{
|
||||
xembed_message_send(c, client, XEMBED_FOCUS_OUT, 0, 0, 0);
|
||||
}
|
||||
|
|
|
@ -63,6 +63,8 @@ systray_request_handle(xcb_window_t embed_win, int phys_screen, xembed_info_t *i
|
|||
|
||||
xembed_window_list_append(&globalconf.embedded, em);
|
||||
|
||||
/** \todo we should create a dedicated window for that */
|
||||
if(globalconf.screens[phys_screen].systray)
|
||||
xembed_embedded_notify(globalconf.connection, em->win,
|
||||
globalconf.screens[phys_screen].systray->sw->window,
|
||||
MIN(XEMBED_VERSION, em->info.version));
|
||||
|
|
Loading…
Reference in New Issue