[totem/wip/hadess/fix-hidden-cursor: 2/2] main: Don't hide cursor when switched away from player
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/fix-hidden-cursor: 2/2] main: Don't hide cursor when switched away from player
- Date: Fri, 4 Feb 2022 21:52:13 +0000 (UTC)
commit 4e66a250ebf19963355fde2bb40b45ed2a0b6c57
Author: Bastien Nocera <hadess hadess net>
Date: Fri Feb 4 22:49:28 2022 +0100
main: Don't hide cursor when switched away from player
If we exited the player with the popups still shown, the timeout to hide
the popups would hide the cursor. Remove the timeouts when switching
away from the player and don't schedule new timeouts.
Closes: #502
src/totem-object.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 59d23f3ab..f8aea4ef1 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1107,6 +1107,7 @@ totem_object_set_main_page (TotemObject *totem,
if (totem_grilo_get_current_page (TOTEM_GRILO (totem->grilo)) == TOTEM_GRILO_PAGE_RECENT)
gtk_widget_show (totem->add_button);
totem_grilo_start (TOTEM_GRILO (totem->grilo));
+ unschedule_hiding_popup (totem);
}
g_object_notify (G_OBJECT (totem), "main-page");
@@ -1911,7 +1912,8 @@ unmark_popup_busy (TotemObject *totem,
g_debug ("Removing popup busy for reason %s", reason);
if (g_hash_table_size (totem->busy_popup_ht) == 0 &&
- gtk_widget_get_opacity (GTK_WIDGET (gtk_builder_get_object (totem->controls, "toolbar"))) != 0.0)
{
+ gtk_widget_get_opacity (GTK_WIDGET (gtk_builder_get_object (totem->controls, "toolbar"))) != 0.0
&&
+ g_strcmp0 (gtk_stack_get_visible_child_name (GTK_STACK (totem->stack)), "player") == 0) {
g_debug ("Will hide popup soon");
schedule_hiding_popup (totem);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]