diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-25 13:16:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-25 13:16:35 -0500 |
commit | 3296365ce591ae4ba115befa8134bc2526b36710 (patch) | |
tree | e1b7a73b6d86e69b356bc8791a0b0996fa2842ad /rootston/keyboard.c | |
parent | 7da653bbb4569d41ce1a46c97e3b10c675f73741 (diff) | |
parent | 202a728ee9a0e7dbfbcc7e51e060a2a9a5f09847 (diff) |
Merge pull request #659 from agx/alpha
Make wlr_render_with_matrix use alpha
Diffstat (limited to 'rootston/keyboard.c')
-rw-r--r-- | rootston/keyboard.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rootston/keyboard.c b/rootston/keyboard.c index 6ec90c31..b5dac51c 100644 --- a/rootston/keyboard.c +++ b/rootston/keyboard.c @@ -106,6 +106,11 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard, } } else if (strcmp(command, "next_window") == 0) { roots_seat_cycle_focus(seat); + } else if (strcmp(command, "alpha") == 0) { + struct roots_view *focus = roots_seat_get_focus(seat); + if (focus != NULL) { + view_cycle_alpha(focus); + } } else if (strncmp(exec_prefix, command, strlen(exec_prefix)) == 0) { const char *shell_cmd = command + strlen(exec_prefix); pid_t pid = fork(); |