backends: Add MetaInputMapper method to lookup devices from outputs
So we may know the device of a certain ClutterInputDeviceType that is mapped to the given output.
This commit is contained in:

committed by
Georges Basile Stavracas Neto

parent
87858a4e01
commit
faf89ff35f
@ -23,6 +23,7 @@
|
||||
#define META_INPUT_MAPPER_H
|
||||
|
||||
#include <clutter/clutter.h>
|
||||
#include "meta-monitor-manager-private.h"
|
||||
|
||||
#define META_TYPE_INPUT_MAPPER (meta_input_mapper_get_type ())
|
||||
|
||||
@ -37,4 +38,9 @@ void meta_input_mapper_add_device (MetaInputMapper *mapper,
|
||||
void meta_input_mapper_remove_device (MetaInputMapper *mapper,
|
||||
ClutterInputDevice *device);
|
||||
|
||||
ClutterInputDevice *
|
||||
meta_input_mapper_get_logical_monitor_device (MetaInputMapper *mapper,
|
||||
MetaLogicalMonitor *logical_monitor,
|
||||
ClutterInputDeviceType device_type);
|
||||
|
||||
#endif /* META_INPUT_MAPPER_H */
|
||||
|
Reference in New Issue
Block a user