mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-15 18:53:40 +01:00
Account for reserved area when creating root node
This commit is contained in:
parent
155b4c51e7
commit
bec2324b78
1 changed files with 2 additions and 2 deletions
|
@ -411,8 +411,8 @@ void Hy3Layout::onWindowCreatedTiling(CWindow* window) {
|
|||
if ((opening_into = this->getWorkspaceRootGroup(window->m_iWorkspaceID)) == nullptr) {
|
||||
this->nodes.push_back({
|
||||
.data = Hy3GroupLayout::SplitH,
|
||||
.position = monitor->vecPosition,
|
||||
.size = monitor->vecSize,
|
||||
.position = monitor->vecPosition + monitor->vecReservedTopLeft,
|
||||
.size = monitor->vecSize - monitor->vecReservedTopLeft - monitor->vecReservedBottomRight,
|
||||
.workspace_id = window->m_iWorkspaceID,
|
||||
.layout = this,
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue