mirror of
https://github.com/Trensa-Organization/hy3.git
synced 2025-03-16 03:03: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) {
|
if ((opening_into = this->getWorkspaceRootGroup(window->m_iWorkspaceID)) == nullptr) {
|
||||||
this->nodes.push_back({
|
this->nodes.push_back({
|
||||||
.data = Hy3GroupLayout::SplitH,
|
.data = Hy3GroupLayout::SplitH,
|
||||||
.position = monitor->vecPosition,
|
.position = monitor->vecPosition + monitor->vecReservedTopLeft,
|
||||||
.size = monitor->vecSize,
|
.size = monitor->vecSize - monitor->vecReservedTopLeft - monitor->vecReservedBottomRight,
|
||||||
.workspace_id = window->m_iWorkspaceID,
|
.workspace_id = window->m_iWorkspaceID,
|
||||||
.layout = this,
|
.layout = this,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue