[mutter] backends: Add private getter for the MetaInputSettings
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] backends: Add private getter for the MetaInputSettings
- Date: Fri, 22 Jul 2016 12:00:52 +0000 (UTC)
commit 73958aeb59e990b1f1719b0f8d4e567f06a55eb0
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri May 13 13:31:52 2016 +0200
backends: Add private getter for the MetaInputSettings
We will need to fetch information from it at certain places.
src/backends/meta-backend-private.h | 3 +++
src/backends/meta-backend.c | 8 ++++++++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/meta-backend-private.h b/src/backends/meta-backend-private.h
index d727ba2..ee85e8a 100644
--- a/src/backends/meta-backend-private.h
+++ b/src/backends/meta-backend-private.h
@@ -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 */
diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c
index e5a09de..c31bdca 100644
--- a/src/backends/meta-backend.c
+++ b/src/backends/meta-backend.c
@@ -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;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]