[libdazzle] dock-bin: don't stomp on stashed pinned state
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] dock-bin: don't stomp on stashed pinned state
- Date: Wed, 5 Jul 2017 13:28:58 +0000 (UTC)
commit ab8738f5bac0b114a237ffa5b9a93be7084791a5
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 5 06:28:20 2017 -0700
dock-bin: don't stomp on stashed pinned state
If we are animating, we don't want to stomp over our previous
stashing.
src/panel/dzl-dock-bin.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/panel/dzl-dock-bin.c b/src/panel/dzl-dock-bin.c
index 619e5e7..c30719f 100644
--- a/src/panel/dzl-dock-bin.c
+++ b/src/panel/dzl-dock-bin.c
@@ -271,7 +271,12 @@ set_visible (DzlDockBin *self,
if (visible != dzl_dock_revealer_get_reveal_child (DZL_DOCK_REVEALER (widget)))
{
- child->pre_anim_pinned = child->pinned;
+ /* Only stash state if there is not an animation in progress.
+ * Otherwise we stomp on our previous state.
+ */
+ if (!dzl_dock_revealer_is_animating (DZL_DOCK_REVEALER (widget)))
+ child->pre_anim_pinned = child->pinned;
+
child->pinned = FALSE;
dzl_dock_revealer_set_reveal_child (DZL_DOCK_REVEALER (widget), visible);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]