mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Reconfigure inputs
This commit is contained in:
parent
326b4aebd1
commit
d4e1791c88
3 changed files with 19 additions and 0 deletions
|
|
@ -362,6 +362,7 @@ void arrange_layers(struct output *output);
|
||||||
|
|
||||||
void seat_init(struct server *server);
|
void seat_init(struct server *server);
|
||||||
void seat_finish(struct server *server);
|
void seat_finish(struct server *server);
|
||||||
|
void seat_reconfigure(struct server *server);
|
||||||
void seat_focus_surface(struct seat *seat, struct wlr_surface *surface);
|
void seat_focus_surface(struct seat *seat, struct wlr_surface *surface);
|
||||||
void seat_set_focus_layer(struct seat *seat, struct wlr_layer_surface_v1 *layer);
|
void seat_set_focus_layer(struct seat *seat, struct wlr_layer_surface_v1 *layer);
|
||||||
|
|
||||||
|
|
|
||||||
17
src/seat.c
17
src/seat.c
|
|
@ -192,6 +192,23 @@ seat_finish(struct server *server)
|
||||||
wlr_cursor_destroy(seat->cursor);
|
wlr_cursor_destroy(seat->cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
seat_reconfigure(struct server *server)
|
||||||
|
{
|
||||||
|
struct seat *seat = &server->seat;
|
||||||
|
struct input *input;
|
||||||
|
struct wlr_keyboard *kb = &seat->keyboard_group->keyboard;
|
||||||
|
wl_list_for_each(input, &seat->inputs, link) {
|
||||||
|
/* We don't configure keyboards by libinput, so skip them */
|
||||||
|
if (wlr_input_device_is_libinput(input->wlr_input_device) &&
|
||||||
|
input->wlr_input_device->type ==
|
||||||
|
WLR_INPUT_DEVICE_POINTER) {
|
||||||
|
configure_libinput(input->wlr_input_device);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
wlr_keyboard_set_repeat_info(kb, rc.repeat_rate, rc.repeat_delay);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
seat_focus_surface(struct seat *seat, struct wlr_surface *surface)
|
seat_focus_surface(struct seat *seat, struct wlr_surface *surface)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,7 @@ reload_config_and_theme(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
menu_reconfigure(g_server, g_server->rootmenu);
|
menu_reconfigure(g_server, g_server->rootmenu);
|
||||||
|
seat_reconfigure(g_server);
|
||||||
damage_all_outputs(g_server);
|
damage_all_outputs(g_server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue