Skip to content

Commit 54cb5f4

Browse files
committed
workspace-impl: return output size directly if output is attached
Fixes #1991 The idea is that otherwise we can have race conditions depending on the order of the output-configuration-changed handlers.
1 parent 9f92df3 commit 54cb5f4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/output/workspace-impl.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,11 @@ uint64_t workspace_set_t::get_index() const
757757

758758
std::optional<wf::geometry_t> workspace_set_t::get_last_output_geometry()
759759
{
760+
if (pimpl->output)
761+
{
762+
return pimpl->output->get_relative_geometry();
763+
}
764+
760765
return pimpl->workspace_geometry;
761766
}
762767

0 commit comments

Comments
 (0)