[mutter/wip/carlosg/event-cleanup: 9/11] backends/native: Drop MetaEventNative
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/event-cleanup: 9/11] backends/native: Drop MetaEventNative
- Date: Tue, 8 Dec 2020 13:04:00 +0000 (UTC)
commit d60bb3455c19b8dd3c877de256b7a879c00c716a
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Dec 8 13:37:07 2020 +0100
backends/native: Drop MetaEventNative
This doesn't really hold anything now, so we can stop trying to
copy these across events.
src/backends/native/meta-backend-native.c | 1 -
src/backends/native/meta-event-native.c | 54 -------------------------------
src/backends/native/meta-event-native.h | 45 --------------------------
src/backends/native/meta-seat-impl.c | 1 -
src/backends/native/meta-seat-native.c | 11 -------
src/meson.build | 2 --
6 files changed, 114 deletions(-)
---
diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c
index 939885a64a..d38932bba0 100644
--- a/src/backends/native/meta-backend-native.c
+++ b/src/backends/native/meta-backend-native.c
@@ -50,7 +50,6 @@
#include "backends/meta-settings-private.h"
#include "backends/meta-stage-private.h"
#include "backends/native/meta-clutter-backend-native.h"
-#include "backends/native/meta-event-native.h"
#include "backends/native/meta-kms.h"
#include "backends/native/meta-kms-device.h"
#include "backends/native/meta-launcher.h"
diff --git a/src/backends/native/meta-seat-impl.c b/src/backends/native/meta-seat-impl.c
index 39271be68a..a9ee7a5cb6 100644
--- a/src/backends/native/meta-seat-impl.c
+++ b/src/backends/native/meta-seat-impl.c
@@ -35,7 +35,6 @@
#include "backends/meta-cursor-tracker-private.h"
#include "backends/native/meta-barrier-native.h"
-#include "backends/native/meta-event-native.h"
#include "backends/native/meta-input-thread.h"
#include "backends/native/meta-virtual-input-device-native.h"
#include "clutter/clutter-mutter.h"
diff --git a/src/backends/native/meta-seat-native.c b/src/backends/native/meta-seat-native.c
index f56be6627a..d691c52da4 100644
--- a/src/backends/native/meta-seat-native.c
+++ b/src/backends/native/meta-seat-native.c
@@ -31,7 +31,6 @@
#include "backends/meta-cursor-tracker-private.h"
#include "backends/meta-keymap-utils.h"
#include "backends/native/meta-barrier-native.h"
-#include "backends/native/meta-event-native.h"
#include "backends/native/meta-input-thread.h"
#include "backends/native/meta-keymap-native.h"
#include "backends/native/meta-virtual-input-device-native.h"
@@ -294,22 +293,12 @@ meta_seat_native_copy_event_data (ClutterSeat *seat,
const ClutterEvent *src,
ClutterEvent *dest)
{
- MetaEventNative *event_evdev;
-
- event_evdev = _clutter_event_get_platform_data (src);
- if (event_evdev != NULL)
- _clutter_event_set_platform_data (dest, meta_event_native_copy (event_evdev));
}
static void
meta_seat_native_free_event_data (ClutterSeat *seat,
ClutterEvent *event)
{
- MetaEventNative *event_evdev;
-
- event_evdev = _clutter_event_get_platform_data (event);
- if (event_evdev != NULL)
- meta_event_native_free (event_evdev);
}
static guint
diff --git a/src/meson.build b/src/meson.build
index 6db0462fe7..ef0b28702d 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -652,8 +652,6 @@ if have_native_backend
'backends/native/meta-drm-buffer-import.h',
'backends/native/meta-drm-buffer.c',
'backends/native/meta-drm-buffer.h',
- 'backends/native/meta-event-native.c',
- 'backends/native/meta-event-native.h',
'backends/native/meta-gpu-kms.c',
'backends/native/meta-gpu-kms.h',
'backends/native/meta-input-device-native.c',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]