view: Hide decorations for fullscreen views

Otherwise the decorations are visible on adjacent outputs.
This commit is contained in:
John Lindgren 2022-11-26 02:25:02 -05:00 committed by Johan Malm
parent d6aea3e58f
commit 9dd55f0490
2 changed files with 16 additions and 4 deletions

View file

@ -16,7 +16,11 @@
struct border
ssd_thickness(struct view *view)
{
if (!view->ssd_enabled) {
/*
* Check preconditions for displaying SSD. Note that this
* needs to work even before ssd_create() has been called.
*/
if (!view->ssd_enabled || view->fullscreen) {
return (struct border){ 0 };
}
struct theme *theme = view->server->theme;