diff options
| author | Brandon Doornbos <b.doornbos@protonmail.com> | 2022-01-15 22:56:10 +0100 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2024-01-12 17:05:55 -0500 |
| commit | 9ffa0cf890e03334a36bf29c1fe6d0af8c665eae (patch) | |
| tree | eecda4ff66a357dea0c9f5ae17fd117d30865c7c /keyboard.c | |
| parent | 9a5fd9e73456861de6f6194d51893518da365a2c (diff) | |
| download | suggpicker-9ffa0cf890e03334a36bf29c1fe6d0af8c665eae.tar.gz | |
main.c: add a real-time signal for toggling visibility of the keyboard
Previously it was only possible to either show or hide the keyboard. When you want to control the keyboard with a single button in, i.e. a window manager, this requires a separate script to keep track of state. This solves this by only needing one signal to toggle. Since there are only 2 USR signals, I had to use real-time signals, which are in the [POSIX standard](https://standards.ieee.org/standard/1003_1b-1993.html) and available in the [Linux kernel since 2.2](https://www.man7.org/linux/man-pages/man7/signal.7.html).
Diffstat (limited to 'keyboard.c')
0 files changed, 0 insertions, 0 deletions
