summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_private.h
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-07-10 14:14:06 -0400
committerChris Michael <cp.michael@samsung.com>2017-07-10 14:14:06 -0400
commit8fdb4e0d8deaa8fe0802047d642ca20e8ef90abb (patch)
tree73dc6df98d7c4a47b6250f990d030b118ab76ce2 /src/lib/elput/elput_private.h
parent4052923ed087087e1b9b8f8145d2c6362ff55dec (diff)
elput: Fix support for setting keyboard led(s)
Small patch to update keyboard led(s) when caps, numlock, etc are pressed. This patch adds some fields to internal (non-API exposed) structures inside our private header (of a BETA-API library) and thus should still be ok during freeze. Fixes T5655 @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/elput/elput_private.h')
-rw-r--r--src/lib/elput/elput_private.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/lib/elput/elput_private.h b/src/lib/elput/elput_private.h
index 54ef2c2ba0..5b38c14ab6 100644
--- a/src/lib/elput/elput_private.h
+++ b/src/lib/elput/elput_private.h
@@ -86,6 +86,13 @@ typedef struct _Elput_Input
86 Eina_Bool suspended : 1; 86 Eina_Bool suspended : 1;
87} Elput_Input; 87} Elput_Input;
88 88
89typedef enum _Elput_Leds
90{
91 ELPUT_LED_NUM = (1 << 0),
92 ELPUT_LED_CAPS = (1 << 1),
93 ELPUT_LED_SCROLL = (1 << 2)
94} Elput_Leds;
95
89typedef struct _Elput_Keyboard_Info 96typedef struct _Elput_Keyboard_Info
90{ 97{
91 int refs; 98 int refs;
@@ -104,6 +111,13 @@ typedef struct _Elput_Keyboard_Info
104 xkb_mod_index_t altgr; 111 xkb_mod_index_t altgr;
105 xkb_mod_index_t super; 112 xkb_mod_index_t super;
106 } mods; 113 } mods;
114
115 struct
116 {
117 xkb_led_index_t num;
118 xkb_led_index_t caps;
119 xkb_led_index_t scroll;
120 } leds;
107} Elput_Keyboard_Info; 121} Elput_Keyboard_Info;
108 122
109struct _Elput_Keyboard 123struct _Elput_Keyboard
@@ -132,6 +146,8 @@ struct _Elput_Keyboard
132 struct xkb_compose_table *compose_table; 146 struct xkb_compose_table *compose_table;
133 struct xkb_compose_state *compose_state; 147 struct xkb_compose_state *compose_state;
134 148
149 Elput_Leds leds;
150
135 Elput_Seat *seat; 151 Elput_Seat *seat;
136 152
137 Eina_Bool pending_keymap : 1; 153 Eina_Bool pending_keymap : 1;
@@ -295,6 +311,6 @@ extern Elput_Interface _logind_interface;
295void _keyboard_keymap_update(Elput_Seat *seat); 311void _keyboard_keymap_update(Elput_Seat *seat);
296void _keyboard_group_update(Elput_Seat *seat); 312void _keyboard_group_update(Elput_Seat *seat);
297 313
298
299void _udev_seat_destroy(Elput_Seat *eseat); 314void _udev_seat_destroy(Elput_Seat *eseat);
315
300#endif 316#endif