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

@ -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); 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, xembed_embedded_notify(globalconf.connection, em->win,
globalconf.screens[phys_screen].systray->sw->window, globalconf.screens[phys_screen].systray->sw->window,
MIN(XEMBED_VERSION, em->info.version)); MIN(XEMBED_VERSION, em->info.version));