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
@ -133,6 +133,13 @@ proxy_touch_mode_changed (MetaSeatImpl *seat_impl,
|
||||
g_object_notify (G_OBJECT (seat_native), "touch-mode");
|
||||
}
|
||||
|
||||
static void
|
||||
proxy_bell (MetaSeatImpl *seat_impl,
|
||||
MetaSeatNative *seat_native)
|
||||
{
|
||||
clutter_seat_bell_notify (CLUTTER_SEAT (seat_native));
|
||||
}
|
||||
|
||||
static void
|
||||
meta_seat_native_constructed (GObject *object)
|
||||
{
|
||||
@ -145,6 +152,8 @@ meta_seat_native_constructed (GObject *object)
|
||||
G_CALLBACK (proxy_kbd_a11y_mods_state_changed), seat);
|
||||
g_signal_connect (seat->impl, "touch-mode",
|
||||
G_CALLBACK (proxy_touch_mode_changed), seat);
|
||||
g_signal_connect (seat->impl, "bell",
|
||||
G_CALLBACK (proxy_bell), seat);
|
||||
|
||||
seat->core_pointer = meta_seat_impl_get_pointer (seat->impl);
|
||||
seat->core_keyboard = meta_seat_impl_get_keyboard (seat->impl);
|
||||
|
Reference in New Issue
Block a user