[totem] backend: Don't always hide popup when cursor leaves window



commit fae24983d5cd7740baf0c55510107bbce27a7f6e
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Sep 12 14:15:36 2014 +0200

    backend: Don't always hide popup when cursor leaves window
    
    But only if the popup isn't busy. Otherwise we end up overriding
    the "mark busy" inhibitor and we'd be in a weird state.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736439

 src/backend/bacon-video-widget.c |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index cc92523..432d879 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -605,8 +605,15 @@ leave_notify_cb (GtkWidget        *widget,
   if (gdk_device_get_source (device) == GDK_SOURCE_TOUCHSCREEN)
     return res;
 
-  if (bvw->priv->reveal_controls)
-    set_controls_visibility (bvw, FALSE, TRUE);
+  if (bvw->priv->reveal_controls) {
+    gboolean not_busy;
+
+    not_busy = g_hash_table_size (bvw->priv->busy_popup_ht) == 0;
+    if (not_busy) {
+      GST_DEBUG ("will hide because we're not busy and cursor left");
+      set_controls_visibility (bvw, FALSE, TRUE);
+    }
+  }
 
   return res;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]