backend: Add API to freeze/thaw frame clock
It's just a thin wrapper around the ClutterStage API, with the intention to hide the awkward nest of interdependent backends. https://gitlab.gnome.org/GNOME/mutter/merge_requests/506
This commit is contained in:
parent
3cc3b7526c
commit
88e4ff7409
@ -147,6 +147,10 @@ xkb_layout_index_t meta_backend_get_keymap_layout_group (MetaBackend *backend);
|
||||
|
||||
gboolean meta_backend_is_lid_closed (MetaBackend *backend);
|
||||
|
||||
void meta_backend_freeze_updates (MetaBackend *backend);
|
||||
|
||||
void meta_backend_thaw_updates (MetaBackend *backend);
|
||||
|
||||
void meta_backend_update_last_device (MetaBackend *backend,
|
||||
int device_id);
|
||||
|
||||
|
@ -1079,6 +1079,24 @@ meta_backend_get_stage (MetaBackend *backend)
|
||||
return priv->stage;
|
||||
}
|
||||
|
||||
void
|
||||
meta_backend_freeze_updates (MetaBackend *backend)
|
||||
{
|
||||
ClutterStage *stage;
|
||||
|
||||
stage = CLUTTER_STAGE (meta_backend_get_stage (backend));
|
||||
clutter_stage_freeze_updates (stage);
|
||||
}
|
||||
|
||||
void
|
||||
meta_backend_thaw_updates (MetaBackend *backend)
|
||||
{
|
||||
ClutterStage *stage;
|
||||
|
||||
stage = CLUTTER_STAGE (meta_backend_get_stage (backend));
|
||||
clutter_stage_thaw_updates (stage);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
update_last_device (MetaBackend *backend)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user