From 279db3f16887427007c22601e441e3ea4c8dcde7 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 18 Mar 2021 18:40:40 +0100 Subject: [PATCH] st/button: Consider touch sequences for ::pressed state We do notify on the ::pressed property after touch begin/end and recording the event sequence, but we do not return the correct value if the button was triggered via touch. Consider the event sequence also in the ::pressed getter, so the button is considered pressed. Part-of: --- src/st/st-button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/st/st-button.c b/src/st/st-button.c index 1be9de5f0..eae245928 100644 --- a/src/st/st-button.c +++ b/src/st/st-button.c @@ -432,7 +432,7 @@ st_button_get_property (GObject *gobject, g_value_set_boolean (value, priv->is_checked); break; case PROP_PRESSED: - g_value_set_boolean (value, priv->pressed != 0); + g_value_set_boolean (value, priv->pressed != 0 || priv->press_sequence != NULL); break;