input-settings: Make set_matrix() vfunc take const float array pointer

It shouldn't alter it, or take ownership, so clarify that by making it
constant.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1806>
This commit is contained in:
Jonas Ådahl 2021-03-18 12:04:18 +01:00 committed by Marge Bot
parent e956078052
commit efde781747
4 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ meta_input_settings_dummy_set_send_events (MetaInputSettings *settings,
static void
meta_input_settings_dummy_set_matrix (MetaInputSettings *settings,
ClutterInputDevice *device,
gfloat matrix[6])
const float matrix[6])
{
}

View File

@ -81,7 +81,7 @@ struct _MetaInputSettingsClass
GDesktopDeviceSendEvents mode);
void (* set_matrix) (MetaInputSettings *settings,
ClutterInputDevice *device,
gfloat matrix[6]);
const float matrix[6]);
void (* set_speed) (MetaInputSettings *settings,
ClutterInputDevice *device,
gdouble speed);

View File

@ -147,7 +147,7 @@ set_matrix (GTask *task)
static void
meta_input_settings_native_set_matrix (MetaInputSettings *settings,
ClutterInputDevice *device,
gfloat matrix[6])
const float matrix[6])
{
MetaInputSettingsNative *input_settings_native;
cairo_matrix_t *dev_matrix;

View File

@ -203,7 +203,7 @@ meta_input_settings_x11_set_send_events (MetaInputSettings *settings,
static void
meta_input_settings_x11_set_matrix (MetaInputSettings *settings,
ClutterInputDevice *device,
gfloat matrix[6])
const float matrix[6])
{
MetaBackend *backend = meta_get_backend ();
Display *xdisplay = meta_backend_x11_get_xdisplay (META_BACKEND_X11 (backend));