diff options
| author | Stacy Harper <contact@stacyharper.net> | 2021-08-26 09:16:47 +0200 |
|---|---|---|
| committer | John Sullivan <jsullivan@csumb.edu> | 2021-10-19 23:12:01 -0700 |
| commit | 328cc429df014b74f3a48cefbf765a1b51430804 (patch) | |
| tree | 4a0d5655d4c4a7ccead00db4d32b635cf3537ba7 /main.c | |
| parent | b88d2cd0a556f8cbf1e3bc571281c945abf2d41a (diff) | |
| download | suggpicker-328cc429df014b74f3a48cefbf765a1b51430804.tar.gz | |
WIP refacto keyboard.c
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/main.c b/main.c index ee2712e..0cdf6e2 100644 --- a/main.c +++ b/main.c @@ -8,7 +8,6 @@ #include <wayland-client.h> #include <wchar.h> -#include "drw.h" #include "keyboard.h" #include "config.h" @@ -42,6 +41,7 @@ static uint32_t anchor = ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM | /* application state */ static bool run_display = true; static int cur_x = -1, cur_y = -1; +static struct kbd keyboard; /* event handler prototypes */ static void wl_pointer_enter(void *data, struct wl_pointer *wl_pointer, @@ -333,6 +333,14 @@ main(int argc, char **argv) { if ((tmp = getenv("WVKBD_HEIGHT"))) height = atoi(tmp); + /* keyboard settings */ + keyboard.layers = (enum layout_id *) &layers; + keyboard.scheme = scheme; + keyboard.layer_index = 0; + keyboard.scheme1 = scheme1; + keyboard.scheme1 = scheme1; + + int i; for (i = 1; argv[i]; i++) { if ((!strcmp(argv[i], "-v")) || (!strcmp(argv[i], "--version"))) { |
