mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-07-13 06:24:29 +02:00
fixed layout switching
This commit is contained in:
committed by
John Sullivan
parent
19213688d1
commit
8fdaaa2b6f
6
main.c
6
main.c
@ -129,6 +129,8 @@ static const struct zwlr_layer_surface_v1_listener layer_surface_listener = {
|
||||
.closed = layer_surface_closed,
|
||||
};
|
||||
|
||||
bool debug = false;
|
||||
|
||||
/* configuration, allows nested code to access above variables */
|
||||
#ifndef LAYOUT
|
||||
#error "make sure to define LAYOUT"
|
||||
@ -356,6 +358,8 @@ main(int argc, char **argv) {
|
||||
exit(1);
|
||||
}
|
||||
height = atoi(argv[++i]);
|
||||
} else if (!strcmp(argv[i], "-D")) {
|
||||
debug = true;
|
||||
} else if (!strcmp(argv[i], "-o")) {
|
||||
keyboard.print = true;
|
||||
} else {
|
||||
@ -393,7 +397,7 @@ main(int argc, char **argv) {
|
||||
keyboard.vkbd =
|
||||
zwp_virtual_keyboard_manager_v1_create_virtual_keyboard(vkbd_mgr, seat);
|
||||
|
||||
kbd_init(&keyboard, &layouts, layer_names_list);
|
||||
kbd_init(&keyboard, (struct layout *) &layouts, layer_names_list);
|
||||
|
||||
/* assign kbd state */
|
||||
keyboard.surf = &draw_surf;
|
||||
|
Reference in New Issue
Block a user