mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
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:
parent
f4c9d1ba9f
commit
c033667716
5 changed files with 34 additions and 29 deletions
|
|
@ -11,8 +11,8 @@ ssd_extents_create(struct view *view)
|
|||
struct theme *theme = view->server->theme;
|
||||
float invisible[4] = { 0.0f, 0.0f, 0.0f, 0.0f };
|
||||
struct wl_list *part_list = &view->ssd.extents.parts;
|
||||
int width = view->surface->current.width;
|
||||
int height = view->surface->current.height;
|
||||
int width = view->w;
|
||||
int height = view->h;
|
||||
int full_height = height + theme->border_width + SSD_HEIGHT;
|
||||
int full_width = width + 2 * theme->border_width;
|
||||
int extended_area = EXTENDED_AREA;
|
||||
|
|
@ -61,8 +61,8 @@ ssd_extents_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_height = height + theme->border_width + SSD_HEIGHT;
|
||||
int full_width = width + 2 * theme->border_width;
|
||||
int extended_area = EXTENDED_AREA;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue