Am 2013-12-13 16:12, schrieb Martin Peres:
What prevents other applications from modifying this setting to true
if they want to
spy on applications?
Nothing. But then again if you can write to the ini file you can make
the compositor load any code with the shell setting.
I don't even think my
It was rightly pointed out to me that on a laptop keyboard having num
lock on by default would be an annoyance, so discard this patch. I'll
probably try adding an option in weston.ini.
Giulio
2013/12/14 Giulio Camuffo :
> it seems to me having num lock on is a sensible default
> ---
> desktop-sh
it seems to me having num lock on is a sensible default
---
desktop-shell/shell.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 520623f..fa77093 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -5836,6 +5836,12 @@ mod
the internal state in xkbcommon is off for all the three leds, so
make them be in sync.
---
Another solution could be to make it inherit the state of them, but I
don't think it's worthwile the work needed.
src/evdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/evdev.c b/src/evdev.c
This adds a function weston_keyboard_set_leds() which can be used
to change the state of the num lock and the caps lock leds.
Currently works only with compositor-x11 and evdev.
---
I think some protocol is needed for the wayland backend, to tell the parent
compositor to turn them on/off.
src/co