backends: Add private getter for the MetaInputSettings

We will need to fetch information from it at certain places.
This commit is contained in:
Carlos Garnacho 2016-05-13 13:31:52 +02:00
parent 77b33a86b8
commit 73958aeb59
2 changed files with 11 additions and 0 deletions

View File

@ -34,6 +34,7 @@
#include <meta/meta-idle-monitor.h>
#include "meta-cursor-renderer.h"
#include "meta-monitor-manager-private.h"
#include "meta-input-settings-private.h"
#include "backends/meta-pointer-constraint.h"
#include "backends/meta-renderer.h"
#include "core/util-private.h"
@ -146,4 +147,6 @@ void meta_backend_monitors_changed (MetaBackend *backend);
gboolean meta_is_stage_views_enabled (void);
MetaInputSettings *meta_backend_get_input_settings (MetaBackend *backend);
#endif /* META_BACKEND_PRIVATE_H */

View File

@ -764,3 +764,11 @@ meta_is_stage_views_enabled (void)
return strcmp (mutter_stage_views, "1") == 0;
}
MetaInputSettings *
meta_backend_get_input_settings (MetaBackend *backend)
{
MetaBackendPrivate *priv = meta_backend_get_instance_private (backend);
return priv->input_settings;
}