diff options
| author | bbgun7 <jpm@hiya.ca> | 2019-04-22 10:34:19 -0700 |
|---|---|---|
| committer | bbgun7 <jpm@hiya.ca> | 2019-04-22 10:34:19 -0700 |
| commit | 86f4fea55e2f9f3503fdc00245b270bff19fd2fc (patch) | |
| tree | 541a10a4147f4040fa6f4ad17dc5e1e08f88c335 /render.c | |
| parent | 98e5afe364776d06017579e14f972be6f65fbb8b (diff) | |
Added hide keyboard layout option
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -156,7 +156,8 @@ void render_frame(struct swaylock_surface *surface) { } xkb_layout_index_t num_layout = xkb_keymap_num_layouts(state->xkb.keymap); - if (state->args.show_keyboard_layout || num_layout > 1) { + if (!state->args.hide_keyboard_layout && + (state->args.show_keyboard_layout || num_layout > 1)) { xkb_layout_index_t curr_layout = 0; // advance to the first active layout (if any) |
