From a7fdb82fb72f143fac722496438f709f8347b308 Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Wed, 2 Jun 2021 12:20:14 -0400
Subject: [PATCH] overlays: fix participant overlay z-order

Change-Id: I42826555d7d490f9361465c1629a45e69f262ab7
---
 src/mainview/components/ParticipantOverlay.qml | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/mainview/components/ParticipantOverlay.qml b/src/mainview/components/ParticipantOverlay.qml
index 6120491fe..ea6004d1f 100644
--- a/src/mainview/components/ParticipantOverlay.qml
+++ b/src/mainview/components/ParticipantOverlay.qml
@@ -51,7 +51,7 @@ Item {
     property bool participantIsModeratorMuted: false
     property bool participantMenuActive: false
 
-    z: -1
+    z: 1
 
     function setAvatar(show, avatar, uri, local, isContact) {
         if (!show)
@@ -232,8 +232,14 @@ Item {
             // as a parent object or some property passed in. But, this
             // will still fail when hovering over menus, etc.
         }
-        onExited: participantRect.opacity = 0
-        onEntered: participantRect.opacity = 1
+        onExited: {
+            root.z = 1
+            participantRect.opacity = 0
+        }
+        onEntered: {
+            root.z = 2
+            participantRect.opacity = 1
+        }
 
         // Timer to decide when ParticipantOverlay fade out
         Timer {
-- 
GitLab