diff options
author | Mike Gorse <mgorse@alum.wpi.edu> | 2019-08-05 14:31:58 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@alum.wpi.edu> | 2019-08-05 14:31:58 -0500 |
commit | 673340d60a0bf7b97863985f02854b943ee009bb (patch) | |
tree | f949e12e42296b07db963bea4458e8a0ce16f5c6 /atspi/atspi-mutter-private.h | |
parent | 3ab9289a679e7dba0312e3379e187a2487e0a703 (diff) | |
download | at-spi2-core-673340d60a0bf7b97863985f02854b943ee009bb.tar.gz |
Support mutter remote desktop interface for key/mouse events
Mutter now has a remote desktop interface with methods to synthesize keyboard
and mouse events. This functionality has not been available through AT-SPI on
wayland since it uses X-specific functions.
Also add atspi_set_reference_window.
Probably a work in progress; doesn't appear to be behaving as intended.
Also requires that introspection be enabled on gnome-shell. Ie,
gsettings set org.gnome.shell introspect true
https://bugzilla.gnome.org/show_bug.cgi?id=709999
https://gitlab.gnome.org/GNOME/at-spi2-core/issues/14
Diffstat (limited to 'atspi/atspi-mutter-private.h')
-rw-r--r-- | atspi/atspi-mutter-private.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/atspi/atspi-mutter-private.h b/atspi/atspi-mutter-private.h new file mode 100644 index 00000000..7d09c57a --- /dev/null +++ b/atspi/atspi-mutter-private.h @@ -0,0 +1,36 @@ +/* + * AT-SPI - Assistive Technology Service Provider Interface + * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap) + * + * Copyright 2019 SUSE LLC. + * + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + +#ifndef _ATSPI_MUTTER_H_ +#define _ATSPI_MUTTER_H_ + +G_BEGIN_DECLS + +gboolean _atspi_mutter_generate_keyboard_event (glong keyval, const gchar *keystring, AtspiKeySynthType synth_type, GError **error); + +gboolean _atspi_mutter_generate_mouse_event (glong x, glong y, const gchar *name, GError **error); + +void _atspi_mutter_set_reference_window (AtspiAccessible *accessible); +G_END_DECLS + +#endif /* _ATSPI_MUTTER_H_ */ |