mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
core: Account for completed sequences in feedback updates
The sequences may stay completed in the list (eg. pending a focus request), it's then confusing to show the "wait" cursor icon until they are really gone. Closes: https://gitlab.gnome.org/GNOME/mutter/issues/541
This commit is contained in:
parent
ab7ef5f8bf
commit
40103d6f41
@ -106,12 +106,26 @@ G_DEFINE_TYPE_WITH_PRIVATE (MetaStartupSequence,
|
|||||||
|
|
||||||
static void meta_startup_notification_ensure_timeout (MetaStartupNotification *sn);
|
static void meta_startup_notification_ensure_timeout (MetaStartupNotification *sn);
|
||||||
|
|
||||||
|
static gboolean
|
||||||
|
meta_startup_notification_has_pending_sequences (MetaStartupNotification *sn)
|
||||||
|
{
|
||||||
|
GSList *l;
|
||||||
|
|
||||||
|
for (l = sn->startup_sequences; l; l = l->next)
|
||||||
|
{
|
||||||
|
if (!meta_startup_sequence_get_completed (l->data))
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_startup_notification_update_feedback (MetaStartupNotification *sn)
|
meta_startup_notification_update_feedback (MetaStartupNotification *sn)
|
||||||
{
|
{
|
||||||
MetaDisplay *display = sn->display;
|
MetaDisplay *display = sn->display;
|
||||||
|
|
||||||
if (sn->startup_sequences != NULL)
|
if (meta_startup_notification_has_pending_sequences (sn))
|
||||||
{
|
{
|
||||||
meta_topic (META_DEBUG_STARTUP,
|
meta_topic (META_DEBUG_STARTUP,
|
||||||
"Setting busy cursor\n");
|
"Setting busy cursor\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user