[gnome-shell] St: remove hover state if reactive disabled
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] St: remove hover state if reactive disabled
- Date: Mon, 28 Apr 2014 23:04:04 +0000 (UTC)
commit 103027a446546ca60ce7c74bc15ad10a8ac38ee6
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Wed Apr 16 15:32:37 2014 +0200
St: remove hover state if reactive disabled
The hover state of a widget can become persistent if
the widget becomes reactive while a pointer grab.
To avoid that, remove hover state if the reactive property
is disabled.
https://bugzilla.gnome.org/show_bug.cgi?id=728343
src/st/st-widget.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-widget.c b/src/st/st-widget.c
index ef0e952..3e7c854 100644
--- a/src/st/st-widget.c
+++ b/src/st/st-widget.c
@@ -1443,6 +1443,9 @@ st_widget_reactive_notify (StWidget *widget,
st_widget_remove_style_pseudo_class (widget, "insensitive");
else
st_widget_add_style_pseudo_class (widget, "insensitive");
+
+ if (widget->priv->track_hover)
+ st_widget_sync_hover(widget);
}
static void
@@ -1727,7 +1730,7 @@ st_widget_sync_hover (StWidget *widget)
device_manager = clutter_device_manager_get_default ();
pointer = clutter_device_manager_get_device (device_manager, VIRTUAL_CORE_POINTER_ID);
pointer_actor = clutter_input_device_get_pointer_actor (pointer);
- if (pointer_actor)
+ if (pointer_actor && clutter_actor_get_reactive (CLUTTER_ACTOR (widget)))
st_widget_set_hover (widget, clutter_actor_contains (CLUTTER_ACTOR (widget), pointer_actor));
else
st_widget_set_hover (widget, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]