Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/shell/panel/panel_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,12 +635,8 @@ void PanelManager::openPanel(const std::string& panelId, PanelOpenRequest reques
};

PanelPlacement activePlacement = m_activePanel->panelPlacement();
const bool fillWidth = m_activePanel->fillsWidth();
const bool fillHeight = m_activePanel->fillsHeight();
if ((fillWidth || fillHeight) && activePlacement != PanelPlacement::Floating) {
kLog.warn("panel manager: \"{}\" uses fill sizing, which requires floating placement — opening floating", panelId);
activePlacement = PanelPlacement::Floating;
}
const bool fillWidth = m_activePanel->fillsWidth() && activePlacement == PanelPlacement::Floating;
const bool fillHeight = m_activePanel->fillsHeight() && activePlacement == PanelPlacement::Floating;
m_panelFillWidth = fillWidth;
m_panelFillHeight = fillHeight;
const bool pluginPanel = m_activePanelId.contains(':');
Expand Down