Dorota Czaplejewicz
523caa99c5
build: Avoid MaybeUninit on older Debian
2020-10-03 13:11:17 +00:00
Dorota Czaplejewicz
20c44476a3
Merge branch 'master' into x11kb
2020-10-03 12:34:50 +00:00
Dorota Czaplejewicz
e6c136918c
keymaps: Use multiple key maps, each within the limit of what Xorg can accept.
...
Key maps are switched on key press whenever needed.
2020-10-03 12:22:01 +00:00
Dorota Czaplejewicz
24adba44be
Merge branch 'leak-fixes' into 'master'
...
Fix 2 leaks
Closes #148
See merge request Librem5/squeekboard!386
2020-10-03 07:38:52 +00:00
Benjamin Schaaf
5e43a31051
Fix leak endlessly adding a resource path to the default theme
2020-10-03 16:23:13 +10:00
Benjamin Schaaf
40850267d4
Fix leak in level_keyboard_new
...
xkb_keymap_get_as_string requires that the string it returns is freed by
the caller.
2020-10-03 16:07:36 +10:00
Dorota Czaplejewicz
c686cf7e81
syntax: Let older rustc understand symbolmap's lifetime
2020-10-01 14:12:15 +00:00
Dorota Czaplejewicz
ec5570a547
Merge branch 'keyboard-layout-belgian' into 'master'
...
proposal for belgian layout (copy of fr)
See merge request Librem5/squeekboard!382
2020-10-01 13:21:49 +00:00
Al
72bd265065
alphabetical order for src/resources.rs tests/meson.build
2020-10-01 14:54:22 +02:00
Al
4357052fe7
proposal for belgian layout (copy of fr)
2020-09-30 15:42:31 +02:00
Dorota Czaplejewicz
2959d27ea3
tests: Check for missing return in builtin layouts except emoji
2020-09-28 20:37:34 +00:00
Dorota Czaplejewicz
88d3a45083
keymap: Concentrate special handling of BackSpace, which is implicit in Erase action
2020-09-28 20:37:34 +00:00
Dorota Czaplejewicz
edc330d683
data: Restore testability of action->keysym conversion
2020-09-28 20:37:31 +00:00
Dorota Czaplejewicz
44e06bc0dc
keymap: Generate from symbol map, not layout
2020-09-28 17:52:00 +00:00
Dorota Czaplejewicz
8e2e8b0f5f
vkeyboard: Use a generic slice instead of a vector
2020-09-28 17:36:59 +00:00
Dorota Czaplejewicz
4b825c26a6
Merge branch 'docs-fixes' into 'master'
...
Expand the development documentation in the readme
Closes #227
See merge request Librem5/squeekboard!377
2020-09-26 09:00:51 +00:00
Benjamin Schaaf
94bfa92c12
Expand the development documentation in the readme
...
Fixes #227
2020-09-26 00:34:09 +10:00
Dorota Czaplejewicz
50fb124b26
Merge branch 'hacking-spelling-fixes' into 'master'
...
Fix spelling mistakes in doc/hacking.md
Closes #217
See merge request Librem5/squeekboard!378
2020-09-25 12:47:17 +00:00
Benjamin Schaaf
7aa004ceff
Fix spelling mistakes in doc/hacking.md
...
Fixes #217
2020-09-25 21:44:27 +10:00
Dorota Czaplejewicz
fea4ea7392
keymap: Make acceptable by Xwayland
...
Xwayland is more strict about accepting key maps than Wayland, and it also fails silently. Instead of fixing the other parts of the stack to reshape accepted Wayland key maps into acceptable Xorg key maps, this patch makes Squeekboard serve the maximum compatibility version in the first place.
Compatibility not actually guaranteed, that's purely observational.
Layouts with many characters (above 240) may lose some characters. This is again due to Xwayland accepting stricter layouts than Wayland.
2020-09-25 09:12:01 +00:00
Dorota Czaplejewicz
60056dcf26
Merge branch 'honor-a11y-setting' into 'master'
...
Honor org.gnome.desktop.a11y.applications screen-keyboard-enabled
Closes #222
See merge request Librem5/squeekboard!370
2020-09-24 06:49:13 +00:00
Guido Gunther
5580853f31
Merge branch 'depr' into 'master'
...
rust: Fix deprecation warnings
See merge request Librem5/squeekboard!374
2020-09-21 17:01:51 +00:00
Dorota Czaplejewicz
d93e9c2b11
rust: Fix deprecation warnings
2020-09-21 10:57:01 +00:00
Guido Günther
4ccf11f4fd
server-context-service: Don't show keyboard when disabled
...
If the corresponding a11y settings is disbaled don't unfold
the keyboad at all.
This helps e.g. running the same session on laptops or when
an external keyboard is attached.
Closes : #222
2020-09-14 11:34:17 +02:00
Guido Gunther
6c5df02921
Merge branch 'cleanup' into 'master'
...
A bunch of cleanups
See merge request Librem5/squeekboard!371
2020-09-14 09:26:20 +00:00
Dorota Czaplejewicz
b137e2e3a0
Merge branch 'ukrainian-keyboard-layout' into 'master'
...
Add Ukrainian keyboard layout
Closes #223
See merge request Librem5/squeekboard!372
2020-09-14 07:48:03 +00:00
Nazarii Kretovych
820a8b6ca1
Add Ukrainian keyboard layout.
...
Fixes https://source.puri.sm/Librem5/squeekboard/-/issues/223
Signed-off-by: Nazarii Kretovych <nazarii.kretovych@gmail.com >
2020-09-14 08:34:09 +03:00
Guido Günther
8bdfb69dc1
server-context-service: swap signal arguments
...
This makes sure 'self' comes first. While at that fix the
function signatures and use ServerContextService directly
and add type checks so it's easy to notice when we messed up.
2020-09-11 20:44:36 +02:00
Guido Günther
1e6bcef055
server-context-service: Consistenty name self argument 'self'
...
It's confusing when the object a method acts on is sometimes called
context and sometimes called state. So name it 'self' as we do
in other projects.
2020-09-11 20:05:49 +02:00
Guido Günther
07faf906d8
eekboard-context-service: Drop private struct
...
There's no point having it for a final type and it only
makes the code harder to read.
2020-09-11 18:55:35 +02:00
Guido Günther
53f30324f0
eekboard-context-service: Drop the GObject boilerplate
...
The previous commits show it's not really a derivable type
so make it a finale one.
2020-09-11 18:55:35 +02:00
Guido Günther
3e212ddab4
eekboard-context-service: Drop docstrings for inexistent functions
2020-09-11 18:46:22 +02:00
Guido Günther
966990ad65
eekboad-context-service: Drop signal class handler
...
It's unused
2020-09-11 18:45:33 +02:00
Guido Günther
a8b81172fc
build: Enable '-Wformat-nonliteral'
2020-09-11 18:40:56 +02:00
Guido Günther
97f51591b3
ServerContextService: Drop GObject boilerplate
...
G_DECLARE_FINAL_TYPE does this for us
2020-09-11 18:16:30 +02:00
Guido Günther
6756fb423a
build: Enable -Wredundant-declarations
2020-09-11 18:16:30 +02:00
Guido Günther
eb7673d2c2
treewide: Drop redundant declarations
2020-09-11 18:16:30 +02:00
Guido Günther
24b6a04903
build: Enable -Wmaybe-uninitialized
...
No changes needed.
2020-09-11 18:16:30 +02:00
Guido Günther
b197cd839e
build: Enable -Wformat-security
...
No changes needed.
2020-09-11 18:16:30 +02:00
Guido Günther
857a916402
build: Enable -Winit-self
...
No changes needed
2020-09-11 18:16:30 +02:00
Guido Günther
ca68fc2040
eek-keyboard: Don't ignore return value
...
This fixes
../eek/eek-keyboard.c:71:5: warning: ignoring return value of ‘getrandom’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
71 | getrandom(r, 6, GRND_NONBLOCK);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[17/32] Compiling C object 'src/25a6634@@libsqueekboard@sta/.._eek_eek-renderer.c.o'
2020-09-11 18:16:30 +02:00
Guido Günther
bd661bd4f4
gitlab-ci: Enable --Werror
...
This makes sure we don't have more warnings creeping in
2020-09-11 18:16:30 +02:00
Guido Günther
4228192bda
layout: Fix warning
...
This fixes
warning: unnecessary parentheses around block return value
--> /var/scratch/librem5/squeekboard/src/layout.rs:110:13
|
110 | / (point.x > self.x && point.x < self.x + self.width
111 | | && point.y > self.y && point.y < self.y + self.height)
| |______________________________________________________________________^
|
= note: `#[warn(unused_parens)]` on by default
2020-09-11 18:16:30 +02:00
Guido Günther
0f7ab99da3
keyboard: Fix warning
...
warning: unused variable: `name`
--> /var/scratch/librem5/squeekboard/src/keyboard.rs:195:10
|
195 | for (name, state) in keystates.iter() {
| ^^^^ help: consider prefixing with an underscore: `_name`
2020-09-11 18:16:30 +02:00
Guido Günther
e15d317488
eekboard-context-service: Drop EEKBOARD_CONTEXT_SERVICE_GET_PRIVATE
...
This fixes the
../eekboard/eekboard-context-service.c:244:13: warning: Deprecated pre-processor symbol, replace with
244 | self->priv = EEKBOARD_CONTEXT_SERVICE_GET_PRIVATE(self);
warning and makes us use more modern GObject style
2020-09-11 18:16:30 +02:00
Guido Günther
93e9ce0dd7
build: Enable '-Wunused-function'
2020-09-11 18:16:13 +02:00
Guido Günther
9d63b505ec
build: Enable '-Wold-style-definition' '-Wstrict-prototypes'
2020-09-11 18:15:44 +02:00
Guido Günther
306c11f1fd
treewide: Use new style function definitions
2020-09-11 18:15:02 +02:00
Guido Günther
c26feed8b2
eekboard-context-service: Return early if schema is unavailable
...
This also fixes a leak of GSettingsSchema.
2020-09-11 18:14:19 +02:00
Dorota Czaplejewicz
2f4a652f53
Merge branch 'fixmods' into 'master'
...
virtual_keyboard: Fix desynced modifiers state
See merge request Librem5/squeekboard!362
2020-08-28 11:02:50 +00:00