Skip to content

Commit

Permalink
workspace-impl: return output size directly if output is attached (#1997
Browse files Browse the repository at this point in the history
)

Fixes #1991

The idea is that otherwise we can have race conditions depending on the
order of the output-configuration-changed handlers.
  • Loading branch information
ammen99 authored Nov 3, 2023
1 parent 63b51eb commit 97bc500
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/output/workspace-impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,11 @@ uint64_t workspace_set_t::get_index() const

std::optional<wf::geometry_t> workspace_set_t::get_last_output_geometry()
{
if (pimpl->output)
{
return pimpl->output->get_relative_geometry();
}

return pimpl->workspace_geometry;
}

Expand Down

0 comments on commit 97bc500

Please sign in to comment.