[mutter/wip/carlosg/accelerators-with-device] core: Emit ::accelerator-activated with a ClutterInputDevice argument
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/accelerators-with-device] core: Emit ::accelerator-activated with a ClutterInputDevice argument
- Date: Mon, 8 Jul 2019 09:48:04 +0000 (UTC)
commit 988da332933affb5c562b795f99676d4986c6e65
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Jul 8 11:42:06 2019 +0200
core: Emit ::accelerator-activated with a ClutterInputDevice argument
The device ID is kind of pointless on Wayland, so it might be better to
stick to something that works for both backends. Passing the device here
allows the higher layers to pick.
src/core/display.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 8e3f93a42..1d06863eb 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -257,7 +257,7 @@ meta_display_class_init (MetaDisplayClass *klass)
G_SIGNAL_RUN_LAST,
0,
NULL, NULL, NULL,
- G_TYPE_NONE, 3, G_TYPE_UINT, G_TYPE_UINT, G_TYPE_UINT);
+ G_TYPE_NONE, 3, G_TYPE_UINT, CLUTTER_TYPE_INPUT_DEVICE, G_TYPE_UINT);
/**
* MetaDisplay::modifiers-accelerator-activated:
@@ -2622,9 +2622,7 @@ meta_display_accelerator_activate (MetaDisplay *display,
ClutterKeyEvent *event)
{
g_signal_emit (display, display_signals[ACCELERATOR_ACTIVATED],
- 0, action,
- clutter_input_device_get_device_id (event->device),
- event->time);
+ 0, action, event->device, event->time);
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]