GNOME Bugzilla – Bug 609546
meta_workspace_set_builtin_struts(): optimize out non-changes
Last modified: 2010-02-10 19:38:22 UTC
A little uncertain about whether this is necessary; I don't have any evidence that constantly invalidating the workareas actually shows up on profiles. It does keep noise out of the debug log. (gnome-shell isn't careful about setting the same builtin struts, and it seems better to fix it here than to add a layer inside the Javascript that has to remember the last struts it set.)
Created attachment 153422 [details] [review] meta_workspace_set_builtin_struts(): optimize out non-changes meta_workspace_set_builtin_struts() is slightly expensive; it involves discarding all our cached computed information about the layout of the workspace. So catch calls to set_builtin_struts() that don't change anything.
Review of attachment 153422 [details] [review]: Looks fine to me.
Attachment 153422 [details] pushed as 6ffe5f8 - meta_workspace_set_builtin_struts(): optimize out non-changes