mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
rootston: wire up window alpha keybinding
This commit is contained in:
parent
e2ea1ebe48
commit
9864f1c136
3 changed files with 16 additions and 0 deletions
|
|
@ -278,6 +278,15 @@ void view_rotate(struct roots_view *view, float rotation) {
|
|||
view_damage_whole(view);
|
||||
}
|
||||
|
||||
void view_cycle_alpha(struct roots_view *view) {
|
||||
view->alpha -= 0.05;
|
||||
/* Don't go completely transparent */
|
||||
if (view->alpha < 0.1) {
|
||||
view->alpha = 1.0;
|
||||
}
|
||||
view_damage_whole(view);
|
||||
}
|
||||
|
||||
void view_close(struct roots_view *view) {
|
||||
if (view->close) {
|
||||
view->close(view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue