tiling: Make child tiles inherit padding from parent tile

If a new tile is added, make it inherit parent tile's padding to ensure
consistent padding.

BUG: 465842
This commit is contained in:
Vlad Zahorodnii 2023-02-20 10:36:22 +02:00 committed by David Edmundson
parent edbbe996d3
commit 18d6159be1

View file

@ -26,6 +26,9 @@ Tile::Tile(TileManager *tiling, Tile *parent)
, m_parentTile(parent) , m_parentTile(parent)
, m_tiling(tiling) , m_tiling(tiling)
{ {
if (m_parentTile) {
m_padding = m_parentTile->padding();
}
connect(Workspace::self(), &Workspace::configChanged, this, &Tile::windowGeometryChanged); connect(Workspace::self(), &Workspace::configChanged, this, &Tile::windowGeometryChanged);
} }