After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707524 - CSD windows "shake" when they go backdrop
CSD windows "shake" when they go backdrop
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 705343 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-09-05 00:00 UTC by Cosimo Cecchi
Modified: 2013-09-27 10:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Cosimo Cecchi 2013-09-05 00:00:43 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.
Comment 1 Matthias Clasen 2013-09-08 20:52:09 UTC
> 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.
Comment 2 Matthias Clasen 2013-09-17 02:54:04 UTC
*** Bug 705343 has been marked as a duplicate of this bug. ***
Comment 3 Sebastian Keller 2013-09-27 10:34:56 UTC
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.