systray: check for embedder window on startup

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-14 23:39:12 +02:00
parent 70dbe7bc4d
commit 6f9d196e67
2 changed files with 6 additions and 4 deletions

View File

@ -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. * \param client The client to send message to.
*/ */
static inline void 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); xembed_message_send(c, client, XEMBED_FOCUS_OUT, 0, 0, 0);
} }

View File

@ -63,9 +63,11 @@ systray_request_handle(xcb_window_t embed_win, int phys_screen, xembed_info_t *i
xembed_window_list_append(&globalconf.embedded, em); xembed_window_list_append(&globalconf.embedded, em);
xembed_embedded_notify(globalconf.connection, em->win, /** \todo we should create a dedicated window for that */
globalconf.screens[phys_screen].systray->sw->window, if(globalconf.screens[phys_screen].systray)
MIN(XEMBED_VERSION, em->info.version)); xembed_embedded_notify(globalconf.connection, em->win,
globalconf.screens[phys_screen].systray->sw->window,
MIN(XEMBED_VERSION, em->info.version));
if(em->info.flags & XEMBED_MAPPED) if(em->info.flags & XEMBED_MAPPED)
xcb_map_window(globalconf.connection, em->win); xcb_map_window(globalconf.connection, em->win);