1 /*
2  * Copyright (C) 2019 Red Hat Inc.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16  *
17  * Author: Carlos Garnacho <carlosg@gnome.org>
18  */
19 #ifndef META_SEAT_X11_H
20 #define META_SEAT_X11_H
21 
22 #include "clutter/clutter.h"
23 
24 G_BEGIN_DECLS
25 
26 #define META_TYPE_SEAT_X11 meta_seat_x11_get_type ()
27 G_DECLARE_FINAL_TYPE (MetaSeatX11, meta_seat_x11, META, SEAT_X11, ClutterSeat)
28 
29 MetaSeatX11 * meta_seat_x11_new (int opcode,
30                                  int logical_pointer,
31                                  int logical_keyboard);
32 gboolean meta_seat_x11_translate_event (MetaSeatX11  *seat,
33 					XEvent       *xevent,
34 					ClutterEvent *event);
35 ClutterInputDevice * meta_seat_x11_lookup_device_id (MetaSeatX11 *seat_x11,
36                                                      int          device_id);
37 void meta_seat_x11_select_stage_events (MetaSeatX11  *seat,
38                                         ClutterStage *stage);
39 void meta_seat_x11_notify_devices (MetaSeatX11  *seat_x11,
40                                    ClutterStage *stage);
41 
42 G_END_DECLS
43 
44 #endif /* META_SEAT_X11_H */
45