From 3f8bba8064c3a172f65883724c9d9d802f2fd190 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Tue, 12 Oct 2010 08:31:41 -0400 Subject: [PATCH] Reset bouncing app icon position when bounce ends If the app is destroyed before the bounce finishes, the icon may be left out of position. Fix that by explicitly resetting the position when the bounce is complete for whatever reason, not just when the bounce ends normally. Signed-off-by: Brad Jorsch --- src/superfluous.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/superfluous.c b/src/superfluous.c index 799e63da..50b60fed 100644 --- a/src/superfluous.c +++ b/src/superfluous.c @@ -311,10 +311,10 @@ reinit: } return; } - XMoveWindow(dpy, aicon->icon->core->window, - aicon->x_pos, aicon->y_pos); } + XMoveWindow(dpy, aicon->icon->core->window, + aicon->x_pos, aicon->y_pos); CommitStackingForWindow(aicon->icon->core); data->wapp->flags.bouncing = 0; WMDeleteTimerHandler(data->timer);