From e801df1ee3790262c9925502663cb456be9bb3ba Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 29 May 2016 14:31:22 +0200 Subject: [PATCH] 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 --- systray.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/systray.c b/systray.c index e0e086648..b4e66acd3 100644 --- a/systray.c +++ b/systray.c @@ -159,7 +159,11 @@ systray_request_handle(xcb_window_t 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, globalconf.systray.window,