mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 16:40:41 -05:00
seat/x11: Add API to get backend
Will be used instead of going via globals by places that already has a seat to fetch things from. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2014>
This commit is contained in:
parent
dfbe97a8e5
commit
05b655e60f
@ -1821,6 +1821,12 @@ meta_seat_x11_new (MetaBackend *backend,
|
|||||||
return seat_x11;
|
return seat_x11;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MetaBackend *
|
||||||
|
meta_seat_x11_get_backend (MetaSeatX11 *seat_x11)
|
||||||
|
{
|
||||||
|
return seat_x11->backend;
|
||||||
|
}
|
||||||
|
|
||||||
static ClutterInputDevice *
|
static ClutterInputDevice *
|
||||||
get_source_device_checked (MetaSeatX11 *seat,
|
get_source_device_checked (MetaSeatX11 *seat,
|
||||||
XIDeviceEvent *xev)
|
XIDeviceEvent *xev)
|
||||||
|
@ -30,6 +30,9 @@ MetaSeatX11 * meta_seat_x11_new (MetaBackend *backend,
|
|||||||
int opcode,
|
int opcode,
|
||||||
int logical_pointer,
|
int logical_pointer,
|
||||||
int logical_keyboard);
|
int logical_keyboard);
|
||||||
|
|
||||||
|
MetaBackend * meta_seat_x11_get_backend (MetaSeatX11 *seat_x11);
|
||||||
|
|
||||||
gboolean meta_seat_x11_translate_event (MetaSeatX11 *seat,
|
gboolean meta_seat_x11_translate_event (MetaSeatX11 *seat,
|
||||||
XEvent *xevent,
|
XEvent *xevent,
|
||||||
ClutterEvent *event);
|
ClutterEvent *event);
|
||||||
|
Loading…
Reference in New Issue
Block a user