diff options
Diffstat (limited to 'desktop-shell/shell.c')
-rw-r--r-- | desktop-shell/shell.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index f85a2695..4cc23d54 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -222,6 +222,13 @@ struct shell_seat { } popup_grab; }; +void +set_alpha_if_fullscreen(struct shell_surface *shsurf) +{ + if (shsurf && shsurf->state.fullscreen) + shsurf->fullscreen.black_view->alpha = 0.25; +} + static struct desktop_shell * shell_surface_get_shell(struct shell_surface *shsurf); |