[mutter/wip/carlosg/input-thread: 55/104] backends: Remove x/y arguments from MetaCursorTracker::cursor-moved
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/input-thread: 55/104] backends: Remove x/y arguments from MetaCursorTracker::cursor-moved
- Date: Thu, 8 Oct 2020 21:41:42 +0000 (UTC)
commit 9ec21cddca94c720d7a814ea82bcd94fbd096678
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jul 10 00:40:55 2020 +0200
backends: Remove x/y arguments from MetaCursorTracker::cursor-moved
Make this signal a hint, the actual coordinates should be queried to the
cursor tracker, the device, the seat... There's enough options.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403
src/backends/meta-cursor-tracker.c | 13 +++----------
src/backends/meta-screen-cast-area-stream-src.c | 2 --
src/backends/meta-screen-cast-monitor-stream-src.c | 2 --
src/backends/meta-screen-cast-window-stream-src.c | 2 --
src/meson.build | 8 --------
src/meta-marshal.list | 1 -
6 files changed, 3 insertions(+), 25 deletions(-)
---
diff --git a/src/backends/meta-cursor-tracker.c b/src/backends/meta-cursor-tracker.c
index f90fd768b0..3c6f6a0c43 100644
--- a/src/backends/meta-cursor-tracker.c
+++ b/src/backends/meta-cursor-tracker.c
@@ -37,7 +37,6 @@
#include "cogl/cogl.h"
#include "core/display-private.h"
#include "clutter/clutter.h"
-#include "meta-marshal.h"
#include "meta/main.h"
#include "meta/util.h"
@@ -301,14 +300,8 @@ meta_cursor_tracker_class_init (MetaCursorTrackerClass *klass)
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
0,
- NULL, NULL,
- meta_marshal_VOID__FLOAT_FLOAT,
- G_TYPE_NONE, 2,
- G_TYPE_FLOAT,
- G_TYPE_FLOAT);
- g_signal_set_va_marshaller (signals[CURSOR_MOVED],
- G_TYPE_FROM_CLASS (klass),
- meta_marshal_VOID__FLOAT_FLOATv);
+ NULL, NULL, NULL,
+ G_TYPE_NONE, 0);
signals[VISIBILITY_CHANGED] = g_signal_new ("visibility-changed",
G_TYPE_FROM_CLASS (klass),
@@ -459,7 +452,7 @@ meta_cursor_tracker_update_position (MetaCursorTracker *tracker,
meta_cursor_renderer_set_position (cursor_renderer, new_x, new_y);
if (position_changed)
- g_signal_emit (tracker, signals[CURSOR_MOVED], 0, new_x, new_y);
+ g_signal_emit (tracker, signals[CURSOR_MOVED], 0);
}
void
diff --git a/src/backends/meta-screen-cast-area-stream-src.c b/src/backends/meta-screen-cast-area-stream-src.c
index e7d42d432a..d83df6dd93 100644
--- a/src/backends/meta-screen-cast-area-stream-src.c
+++ b/src/backends/meta-screen-cast-area-stream-src.c
@@ -181,8 +181,6 @@ sync_cursor_state (MetaScreenCastAreaStreamSrc *area_src)
static void
cursor_moved (MetaCursorTracker *cursor_tracker,
- float x,
- float y,
MetaScreenCastAreaStreamSrc *area_src)
{
sync_cursor_state (area_src);
diff --git a/src/backends/meta-screen-cast-monitor-stream-src.c
b/src/backends/meta-screen-cast-monitor-stream-src.c
index 2a22dc5359..f1f1e07bed 100644
--- a/src/backends/meta-screen-cast-monitor-stream-src.c
+++ b/src/backends/meta-screen-cast-monitor-stream-src.c
@@ -237,8 +237,6 @@ sync_cursor_state (MetaScreenCastMonitorStreamSrc *monitor_src)
static void
cursor_moved (MetaCursorTracker *cursor_tracker,
- float x,
- float y,
MetaScreenCastMonitorStreamSrc *monitor_src)
{
sync_cursor_state (monitor_src);
diff --git a/src/backends/meta-screen-cast-window-stream-src.c
b/src/backends/meta-screen-cast-window-stream-src.c
index a00bf867ab..ec9f873c94 100644
--- a/src/backends/meta-screen-cast-window-stream-src.c
+++ b/src/backends/meta-screen-cast-window-stream-src.c
@@ -369,8 +369,6 @@ sync_cursor_state (MetaScreenCastWindowStreamSrc *window_src)
static void
cursor_moved (MetaCursorTracker *cursor_tracker,
- float x,
- float y,
MetaScreenCastWindowStreamSrc *window_src)
{
sync_cursor_state (window_src);
diff --git a/src/meson.build b/src/meson.build
index df8667f5c2..84cdabcb6a 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -753,14 +753,6 @@ dbus_idle_monitor_built_sources = gnome.gdbus_codegen('meta-dbus-idle-monitor',
)
mutter_built_sources += dbus_idle_monitor_built_sources
-mutter_marshal = gnome.genmarshal('meta-marshal',
- sources: ['meta-marshal.list'],
- prefix: 'meta_marshal',
- internal: true,
- valist_marshallers: true,
- )
-mutter_built_sources += mutter_marshal
-
if have_profiler
mutter_sources += [
'backends/meta-profiler.c',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]