mirror of
https://github.com/brl/mutter.git
synced 2025-07-29 04:58:03 +00:00
backends/native: Proxy bell notifications from within the MetaSeatImpl
As with other changes from within the MetaSeatImpl realm, proxy that through a MetaSeatImpl signal, instead of poking directly on the ClutterSeat. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
This commit is contained in:

committed by
Marge Bot

parent
facc963213
commit
be1ffc86ca
@@ -111,6 +111,7 @@ enum
|
||||
KBD_A11Y_FLAGS_CHANGED,
|
||||
KBD_A11Y_MODS_STATE_CHANGED,
|
||||
TOUCH_MODE,
|
||||
BELL,
|
||||
N_SIGNALS
|
||||
};
|
||||
|
||||
@@ -2731,6 +2732,12 @@ meta_seat_impl_class_init (MetaSeatImplClass *klass)
|
||||
0, NULL, NULL,
|
||||
g_cclosure_marshal_VOID__BOOLEAN,
|
||||
G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
|
||||
signals[BELL] =
|
||||
g_signal_new ("bell",
|
||||
G_TYPE_FROM_CLASS (object_class),
|
||||
G_SIGNAL_RUN_LAST,
|
||||
0, NULL, NULL, NULL,
|
||||
G_TYPE_NONE, 0);
|
||||
|
||||
g_object_class_install_properties (object_class, N_PROPS, props);
|
||||
}
|
||||
@@ -3070,3 +3077,9 @@ meta_seat_impl_notify_kbd_a11y_mods_state_changed (MetaSeatImpl *seat_impl,
|
||||
g_signal_emit (seat_impl, signals[KBD_A11Y_MODS_STATE_CHANGED], 0,
|
||||
new_latched_mods, new_locked_mods);
|
||||
}
|
||||
|
||||
void
|
||||
meta_seat_impl_notify_bell (MetaSeatImpl *seat_impl)
|
||||
{
|
||||
g_signal_emit (seat_impl, signals[BELL], 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user