From 5ac1a6a653acd060e3882fd48af9ead5c6b85906 Mon Sep 17 00:00:00 2001 From: o9000 Date: Fri, 12 Jun 2015 09:44:13 +0200 Subject: [PATCH] systray: resize icon when reparenting --- src/systray/systraybar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index dda3e70..b8cb1ff 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -504,6 +504,9 @@ gboolean reparent_icon(TrayWindow *traywin) return FALSE; } + XMoveResizeWindow(server.dsp, traywin->parent, traywin->x, traywin->y, traywin->width, traywin->height); + XMoveResizeWindow(server.dsp, traywin->win, 0, 0, traywin->width, traywin->height); + traywin->reparented = 1; // Embed into parent