update comp win geometry correctly for override (non-pixmap) windows

This commit is contained in:
Mike Blumenkrantz 2013-04-17 08:46:36 +01:00
parent 5d11130dad
commit 256d1386c1
1 changed files with 2 additions and 1 deletions

View File

@ -485,7 +485,7 @@ _e_comp_win_geometry_update(E_Comp_Win *cw)
else if (cw->bd) else if (cw->bd)
w = cw->bd->w, h = cw->bd->h; w = cw->bd->w, h = cw->bd->h;
else else
w = cw->pw, h = cw->ph; w = cw->pw ?: cw->w, h = cw->ph ?: cw->h;
e_zoomap_child_resize(cw->zoomobj, w, h); e_zoomap_child_resize(cw->zoomobj, w, h);
if (cw->not_in_layout) if (cw->not_in_layout)
{ {
@ -640,6 +640,7 @@ _e_comp_win_update(E_Comp_Win *cw)
} }
if (!((cw->pw > 0) && (cw->ph > 0))) if (!((cw->pw > 0) && (cw->ph > 0)))
{ {
if (cw->geom_update) _e_comp_win_geometry_update(cw);
if (conf->grab) ecore_x_ungrab(); if (conf->grab) ecore_x_ungrab();
return; return;
} }