src/ssd/: Don't access view->surface->current directly

Instead use view->{w,h} which are set on client commit
This commit is contained in:
Consolatis 2022-02-24 01:27:29 +01:00 committed by Johan Malm
parent f4c9d1ba9f
commit c033667716
5 changed files with 34 additions and 29 deletions

View file

@ -13,8 +13,8 @@ void
ssd_border_create(struct view *view)
{
struct theme *theme = view->server->theme;
int width = view->surface->current.width;
int height = view->surface->current.height;
int width = view->w;
int height = view->h;
int full_width = width + 2 * theme->border_width;
float *color;
@ -48,8 +48,8 @@ ssd_border_update(struct view *view)
{
struct theme *theme = view->server->theme;
int width = view->surface->current.width;
int height = view->surface->current.height;
int width = view->w;
int height = view->h;
int full_width = width + 2 * theme->border_width;
struct ssd_part *part;