[totem/wip/hadess/fix-hidden-cursor] 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] main: Don't hide cursor when switched away from player
- Date: Fri, 4 Feb 2022 21:51:48 +0000 (UTC)
commit 141884a57dd7364b231b43d7418d73b12b7353e0
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 bbb703e55..b6d96aa7c 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]