Skip to content

workspace: Update WorkspaceLayout workarea on changes

Previously the workarea was only set on construction and then never updated. As a result the preferred width and height as well as the allocation were based on an outdated workarea size when it changed after construction. This for example was happening during the startup animation, for which the WorkspaceLayout is constructed before the panel is shown. This caused the workspace in the overview to be slightly smaller when it is first shown and the overview closing animation to not expand the workspace to the correct size the first time it is closed.


I'm not particularly happy with connecting to the container destroy signal, but I don't know how else to remove a signal handler from a ClutterLayoutManager on destruction, so I copied this from IconGridLayout. Another idea might be to not connect to the signal in the layout manager, but just add a workarea property and change that from a signal handler in Workspace.

Merge request reports