David Boddie
70895999c2
Generate XKB keymaps from XML instead of using pre-made ones
2019-07-25 22:25:29 +02:00
Piotr Tworek
f86bbb09f8
Fix out of bounds memory read in get_keymap_from_resource.
...
The function reads resource content into a buffer whose size matches the
size of the file contents. This buffer does not have an extra byte that
would 0 terminate this string. This is by itself is not a problem.
Unfortunately the buffer is passed to g_utf8_make_valid function with
size argument specified as -1 which means the buffer is supposed to be
NULL terminated. The end result is g_utf8_make_valid will read at least
1 byte past "contents" buffer size.
Fix this by specifying buffer size when calling g_utf8_make_valid.
2019-07-24 17:08:19 +02:00
David Boddie
e25d5a84b2
Remove unnecessary X11 includes
2019-07-20 23:57:38 +02:00
David Boddie
00c3903672
Respond to the input purpose, showing a numeric keypad if requested
2019-07-20 17:33:55 +02:00
David Boddie
54b0f59935
Always create a new widget for a keyboard and update it if already visible
2019-07-20 17:25:55 +02:00
David Boddie
a045810af6
Merge branch 'add-built-in-keymaps' into 'master'
...
Add built in keymaps
See merge request Librem5/squeekboard!78
2019-07-20 14:42:51 +00:00
David Boddie
6eb63f6a4c
Refactor layout code, rescale and reformat when changing level
2019-07-19 17:35:49 +02:00
Guido Günther
dbc8cc14bc
Generate config.h
...
This allows us to remove a lot of #ifdef's. Either we want to use
a config.h or we don't. Since we'll want it for e.g. optional gsound
support later on let's have it.
2019-07-17 19:50:53 +02:00
Guido Günther
9974c385e5
EekboardContextService: Don't comment out property setters
...
This lets us keep the visible property up to date.
2019-07-17 00:44:09 +02:00
David Boddie
7e9c3b40bb
Remove debugging code
2019-07-16 14:00:41 +02:00
David Boddie
a8371af9c0
Fall back to US layout and keymap if needed
2019-07-16 14:00:41 +02:00
David Boddie
a7140705c4
Search for an xkb keymap in the resources
2019-07-16 14:00:41 +02:00
David Boddie
3c97a3a592
Convert symbols file and update test keymap
2019-07-16 14:00:41 +02:00
David Boddie
268dda4da0
Improve symbol mapping
2019-07-16 14:00:41 +02:00
David Boddie
45f58a97b9
Update the test keymap
2019-07-16 14:00:41 +02:00
David Boddie
bdbbaf6099
Use groups to reference keysyms in the keymap
2019-07-16 14:00:41 +02:00
David Boddie
839968dc84
Try using a custom keymap
2019-07-16 14:00:41 +02:00
David Boddie
fbdc5f4a93
Stash for sharing
2019-07-16 14:00:41 +02:00
Guido Günther
53f7a14717
EekboardService: Properly toggle keyboard visibility on DBus
...
Closes : #55
2019-07-16 10:21:59 +02:00
David Boddie
6f5f49729c
Remove unused files and functions
2019-07-15 23:45:17 +02:00
Hysterical Raisins
4b2977d601
Plug 3 leaks
2019-07-11 13:26:04 +02:00
David Boddie
eb940bcf52
Remove currently unused eekboard code
2019-07-09 16:34:16 +02:00
David Boddie
83b36d07d0
Add note about unused code
2019-07-09 15:28:02 +02:00
David Boddie
e2944ff4a7
Use a macro to declare a type with private data
2019-07-09 00:46:03 +02:00
David Boddie
4d44129b04
Prevent compiler warnings by commenting out unused code
2019-07-09 00:24:57 +02:00
David Boddie
b3e1d84e6c
Merge branch 'mem' into 'master'
...
Fix visibility-related bugs
See merge request Librem5/squeekboard!25
2019-07-08 21:25:27 +00:00
Hysterical Raisins
094aa872ce
Cleanups: fix deprecated g_type_class_add_private()
...
- use G_DECLARE_ and G_DEFINE_ macros
- move all data into ClassNamePrivate
- use _get_instance_private()
This should not introduce any functional changes or breakage.
Skipped two classes (EekKeyboard and EekboardContextService) for now in
order not to break the build.
These two classes are used in some very funky WIP code that tries to
circumvent encapsulation.
(Funky code is in eekboard/key-emitter.c and eekboard/eekboard-context-service.c)
2019-07-08 08:44:05 +02:00
Guido Günther
7a52080940
Remove automake leftovers
2019-07-04 14:51:00 +02:00
Dorota Czaplejewicz
c3ffe6ab8b
visibility: Handle visibility change no-ops
2019-07-04 08:48:43 +00:00
Dorota Czaplejewicz
484eb3303c
modifiers: Seem to be emitted correctly
2019-07-02 11:52:45 +00:00
Dorota Czaplejewicz
baf848c791
layout: Ignore keycodes without corresponding keys
2019-07-01 12:57:52 +00:00
Dorota Czaplejewicz
0d3b003aac
input method: Initialize the protocol and pretend to handle a few things
2019-06-30 19:03:24 +00:00
Dorota Czaplejewicz
4b8a6bbbe0
fix: Remove leftover debug print
2019-06-29 12:16:34 +00:00
Dorota Czaplejewicz
9e5629d1e0
Enable Wayland's virtual-keyboard protocol
...
This commit includes a little restructuring necessary for keeping wayland objects properly.
It doesn't fix broken modifier functionality yet.
2019-06-25 18:12:15 +00:00
Dorota Czaplejewicz
c0fdffac28
Separate keyboards from the dbus handler
2019-06-23 10:59:45 +00:00
Dorota Czaplejewicz
2e6d194a6f
Remove server-service
2019-06-23 10:26:24 +00:00
Dorota Czaplejewicz
63dfb07b51
Simplify the storage of context
2019-06-23 09:54:09 +00:00
Dorota Czaplejewicz
02525056d6
Removed X11 header, added some clarifications
2019-06-22 16:20:03 +00:00
Dorota Czaplejewicz
8292429648
Context: removing more unused things
2019-06-22 16:04:33 +00:00
Dorota Czaplejewicz
765c496068
Removed more unused stuff in context
2019-06-22 15:57:48 +00:00
Dorota Czaplejewicz
d6feec8010
Removed d-bus paths from service class
2019-06-22 15:40:20 +00:00
Dorota Czaplejewicz
f1fbb37547
Kill connection in context service
2019-06-22 15:31:08 +00:00
Dorota Czaplejewicz
82d1f256b2
Remove released and cancelled key events
2019-06-22 12:23:04 +00:00
Dorota Czaplejewicz
260ab42b9e
Forward press timestamps
2019-06-19 15:56:19 +00:00
Dorota Czaplejewicz
a3d745edd0
Moved key pressing from context to keyboard
2019-06-19 15:27:29 +00:00
Dorota Czaplejewicz
292c1d08d8
fixes: Minor type and include mismatches
2019-06-16 12:55:50 +00:00
Dorota Czaplejewicz
70fda8ba64
Fix releasing buttons when dragged
2019-04-06 18:46:33 +00:00
Dorota Czaplejewicz
53af829f46
Send both press and release events
2019-04-06 17:45:06 +00:00
Dorota Czaplejewicz
53065a6d95
Fix crash on double click
2019-04-05 18:42:11 +00:00
Dorota Czaplejewicz
862cfdb55d
Showing and hiding
2019-04-05 18:36:25 +00:00