tiling: fix zero sized zone

when plugging a screen in and out, there is the case that a zone has a
usefull geometry of 0x0, which means all clients on this zone are
resized to 0x0. Which leads to a CRIT message in the compositor, which
leads (ref commit 5d875e6a3d) to a abort()
which is really really annoying. Give here a short ERR about that case
so we are leaving out the compositor, since this really only strikes on
tiling, since in normal mode the client just keeps its size.
This commit is contained in:
Marcel Hollerbach 2017-03-31 16:33:05 +02:00
parent 7ab621925f
commit 8e3531648b
1 changed files with 5 additions and 2 deletions

View File

@ -476,8 +476,11 @@ _reapply_tree(void)
{
e_zone_desk_useful_geometry_get(_G.tinfo->desk->zone, _G.tinfo->desk, &zx, &zy, &zw, &zh);
tiling_window_tree_apply(_G.tinfo->tree, zx, zy, zw, zh,
tiling_g.config->window_padding);
if (zw > 0 && zh > 0)
tiling_window_tree_apply(_G.tinfo->tree, zx, zy, zw, zh,
tiling_g.config->window_padding);
else
ERR("The zone desk geomtry was not usefull at all (%d,%d,%d,%d)", zx, zy, zw, zh);
}
}