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:
parent
edbbe996d3
commit
18d6159be1
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue