summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland/ecore_wl_private.h
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@intel.com>2013-10-31 19:09:30 -0200
committerRafael Antognolli <rafael.antognolli@intel.com>2013-10-31 21:35:13 -0200
commite56428f4ad7b015c73b1959cf1d6aac154ca4ac0 (patch)
tree0ff0f8a4a979d64c3a95e26d14789a9190574b7e /src/lib/ecore_wayland/ecore_wl_private.h
parent35d2f195de262d846c5e3f6dc5634921afe46606 (diff)
ecore/wayland: Make Ecore_Wl_Input private.
It's mostly only used inside ecore_wayland library anyway. The only bit needed outside of the library is the "seat" pointer, but a new function was added to retrieve such pointer from Ecore_Wl_Input.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_private.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_private.h b/src/lib/ecore_wayland/ecore_wl_private.h
index fdbd3c9bef..06be1a5b58 100644
--- a/src/lib/ecore_wayland/ecore_wl_private.h
+++ b/src/lib/ecore_wayland/ecore_wl_private.h
@@ -92,6 +92,58 @@ struct _Ecore_Wl_Display
92 void *data; 92 void *data;
93}; 93};
94 94
95struct _Ecore_Wl_Input
96{
97 Ecore_Wl_Display *display;
98 struct wl_seat *seat;
99 struct wl_pointer *pointer;
100 struct wl_keyboard *keyboard;
101 struct wl_touch *touch;
102
103 const char *cursor_name;
104 struct wl_cursor *cursor;
105 struct wl_surface *cursor_surface;
106 struct wl_callback *cursor_frame_cb;
107 Ecore_Timer *cursor_timer;
108 unsigned int cursor_current_index;
109
110 struct wl_data_device *data_device;
111 struct wl_data_source *data_source;
112 struct wl_array data_types;
113
114 Ecore_Wl_Window *pointer_focus;
115 Ecore_Wl_Window *keyboard_focus;
116
117 unsigned int button;
118 unsigned int timestamp;
119 unsigned int modifiers;
120 unsigned int pointer_enter_serial;
121 int sx, sy;
122
123 struct wl_list link;
124
125 Ecore_Wl_Window *grab;
126 unsigned int grab_button;
127
128 Ecore_Wl_Dnd_Source *drag_source;
129 Ecore_Wl_Dnd_Source *selection_source;
130
131 struct
132 {
133 struct xkb_keymap *keymap;
134 struct xkb_state *state;
135 xkb_mod_mask_t control_mask;
136 xkb_mod_mask_t alt_mask;
137 xkb_mod_mask_t shift_mask;
138 } xkb;
139
140 struct
141 {
142 Ecore_Timer *tmr;
143 unsigned int sym, key, time;
144 } repeat;
145};
146
95struct _Ecore_Wl_Dnd 147struct _Ecore_Wl_Dnd
96{ 148{
97 Ecore_Wl_Display *ewd; 149 Ecore_Wl_Display *ewd;