GNOME Bugzilla – Bug 707524
CSD windows "shake" when they go backdrop
Last modified: 2013-09-27 10:34:56 UTC
When putting a CSD window to backdrop, it will slightly move to its left, and slightly move again to its right when it's brought back to focus. I think this is a consequence of how the overall size of the underlying window is calculated in the CSD case, as it uses the box-shadow bounding box, which has different sizes for backdrop and non-backdrop states. Maybe we should pre-compute bounding boxes for both backdrop and normal states and always size the actual window as the maximum between the two.
> Maybe we should pre-compute bounding boxes for both backdrop and normal states > and always size the actual window as the maximum between the two. Thats what I thought, yes. Need to be careful to use the max for the frame extents too.
*** Bug 705343 has been marked as a duplicate of this bug. ***
With the current patch the shadow size still affects the size of the content of the window. This can be seen in apps like gnome-music (or nautilus, before it got patched) which have a specific default size to show 4 columns in their icon view. Currently they just show 3 columns with a huge whitespace on the right. The old pre-CSD behavior was not to include the shadow size in the size of the window and I think trying to keep that behavior rather than patching every app that relied on it to use a theme-specific default size would be a good idea.