border: clear buffer on fullscreen views

This patch makes sure to clear the border buffer of fullscreen view so
the border doesn't get drawn behind a fullscreen view, which would be
visible if the view was transparent.
This commit is contained in:
Mikkel Oscar Lyderik 2016-04-27 11:22:29 +02:00
parent 27066c6328
commit ddd5b69b99
3 changed files with 21 additions and 10 deletions

View file

@ -555,6 +555,7 @@ void update_geometry(swayc_t *container) {
container->border_geometry = wlc_geometry_zero;
container->title_bar_geometry = wlc_geometry_zero;
border_clear(container->border);
} else if (container->is_floating) { // allocate border for floating window
update_border_geometry_floating(container, &geometry);
} else if (!container->is_floating) { // allocate border for titled window