From 13ef62ea5721d010599d35f861aae9391fbd4bac Mon Sep 17 00:00:00 2001
From: Aline Gondim Santos <aline.gondimsantos@savoirfairelinux.com>
Date: Tue, 28 Feb 2023 11:30:29 -0300
Subject: [PATCH] callactionbar: freeze bar when hovered

Change-Id: Ie899a956d352d4a285480c75392bf79751b63e60
GitLab: #1005
---
 src/app/mainview/components/CallActionBar.qml | 2 ++
 src/app/mainview/components/MainOverlay.qml   | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/app/mainview/components/CallActionBar.qml b/src/app/mainview/components/CallActionBar.qml
index 2de25165b..12503cddf 100644
--- a/src/app/mainview/components/CallActionBar.qml
+++ b/src/app/mainview/components/CallActionBar.qml
@@ -39,6 +39,7 @@ Control {
     property alias overflowOpen: overflowButton.popup.visible
     property bool subMenuOpen: false
     property real parentHeight
+    property bool barHovered: false
 
     property real itemSpacing: 2
 
@@ -65,6 +66,7 @@ Control {
             height: width
             barWidth: root.width
             onSubMenuVisibleChanged: subMenuOpen = subMenuVisible
+            onHoveredChanged: root.barHovered = hovered
         }
     }
 
diff --git a/src/app/mainview/components/MainOverlay.qml b/src/app/mainview/components/MainOverlay.qml
index 86d6b282a..d207b3a61 100644
--- a/src/app/mainview/components/MainOverlay.qml
+++ b/src/app/mainview/components/MainOverlay.qml
@@ -51,7 +51,7 @@ Item {
     property alias callActionBar: __callActionBar
 
     property bool frozen: callActionBar.overflowOpen ||
-                          callActionBar.hovered ||
+                          callActionBar.barHovered ||
                           callActionBar.subMenuOpen ||
                           participantCallInStatusView.visible
 
@@ -274,6 +274,7 @@ Item {
         width: parent.width
         height: 55
         parentHeight: root.height - 81
+        visible: root.opacity
     }
 
     Behavior on opacity {
-- 
GitLab