use pixmap size for wl subsurface commit configure
This commit is contained in:
parent
491825c05f
commit
e1e711ce53
|
@ -1491,10 +1491,7 @@ _e_comp_wl_subsurface_commit_from_cache(E_Client *ec)
|
||||||
{
|
{
|
||||||
int x, y, nw, nh;
|
int x, y, nw, nh;
|
||||||
|
|
||||||
nw = ec->client.w;
|
e_pixmap_size_get(ec->pixmap, &nw, &nh);
|
||||||
nh = ec->client.h;
|
|
||||||
if (nw == 0) nw = cdata->pending.w;
|
|
||||||
if (nh == 0) nh = cdata->pending.h;
|
|
||||||
if (ec->changes.pos)
|
if (ec->changes.pos)
|
||||||
e_comp_object_frame_xy_adjust(ec->frame, ec->x, ec->y, &x, &y);
|
e_comp_object_frame_xy_adjust(ec->frame, ec->x, ec->y, &x, &y);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue