theme, frames: Use surface device scale instead of cairo_scale
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 30 Mar 2018 18:57:50 +0000 (12:57 -0600)
committerMarco Trevisan (Treviño) <marco@ubuntu.com>
Mon, 23 Apr 2018 15:46:57 +0000 (16:46 +0100)
commit6ab9fffc1151c83bda84ee4466c750908f5d8471
tree44133ce77121d0fed47dea4de45c781d286021b9
parente42d516c34e857b9146b65038cf4ae6395a01b93
theme, frames: Use surface device scale instead of cairo_scale

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1764554
Bug-GNOME: https://gitlab.gnome.org/GNOME/mutter/issues/99
Forwarded: yes, https://gitlab.gnome.org/GNOME/mutter/merge_requests/61

Gtk now is caching the themed cairo surfaces, then as per
commit gtk@e36b629c the surface device scale is used to figure
out the current paint scaling.

Without this when using background-image's for window buttons
the -gtk-scaled icons isn't properly resized.

Fixes #99

Gbp-Pq: Name theme-frames-Use-surface-device-scale-instead-of-cairo_sc.patch
src/ui/frames.c
src/ui/theme.c