xembed: Use sane defaults if _XEMBED_INFO is not present

Skype's tray icon doesn't seem to follow the XEMBED spec...

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-05-29 14:31:22 +02:00
parent 0b64c8987d
commit e801df1ee3
1 changed files with 5 additions and 1 deletions

View File

@ -159,7 +159,11 @@ systray_request_handle(xcb_window_t embed_win)
em.win = embed_win; em.win = embed_win;
xembed_info_get_reply(globalconf.connection, em_cookie, &em.info); if (!xembed_info_get_reply(globalconf.connection, em_cookie, &em.info)) {
/* Set some sane defaults */
em.info.version = XEMBED_VERSION;
em.info.flags = XEMBED_MAPPED;
}
xembed_embedded_notify(globalconf.connection, em.win, xembed_embedded_notify(globalconf.connection, em.win,
globalconf.systray.window, globalconf.systray.window,