[mutter/wip/carlosg/clutter-seat: 10/11] sm drop events from floating devices
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/clutter-seat: 10/11] sm drop events from floating devices
- Date: Thu, 3 Oct 2019 10:32:27 +0000 (UTC)
commit 1464555a14518a204b2db5cfc6f2d1d20ae7f984
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Oct 2 16:57:17 2019 +0200
sm drop events from floating devices
src/backends/x11/meta-stage-x11.c | 17 -----------------
1 file changed, 17 deletions(-)
---
diff --git a/src/backends/x11/meta-stage-x11.c b/src/backends/x11/meta-stage-x11.c
index 88a3aea54..0b211a716 100644
--- a/src/backends/x11/meta-stage-x11.c
+++ b/src/backends/x11/meta-stage-x11.c
@@ -305,19 +305,6 @@ meta_stage_x11_unrealize (ClutterStageWindow *stage_window)
g_clear_pointer (&stage_x11->onscreen, cogl_object_unref);
}
-static void
-stage_events_device_added (ClutterDeviceManager *device_manager,
- ClutterInputDevice *device,
- gpointer user_data)
-{
- ClutterStageWindow *stage_window = user_data;
- ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_window);
-
- if (clutter_input_device_get_device_mode (device) == CLUTTER_INPUT_MODE_FLOATING)
- _clutter_device_manager_select_stage_events (device_manager,
- stage_cogl->wrapper);
-}
-
static void
frame_cb (CoglOnscreen *onscreen,
CoglFrameEvent frame_event,
@@ -418,10 +405,6 @@ meta_stage_x11_realize (ClutterStageWindow *stage_window)
{
_clutter_device_manager_select_stage_events (device_manager,
stage_cogl->wrapper);
-
- g_signal_connect (device_manager, "device-added",
- G_CALLBACK (stage_events_device_added),
- stage_window);
}
meta_stage_x11_fix_window_size (stage_x11,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]