diff options
author | 2018-09-23 21:44:57 +0200 | |
---|---|---|
committer | 2018-09-23 21:44:57 +0200 | |
commit | 4a4f07ac25d18dfeffc6a1ff55e175ba01abc290 (patch) | |
tree | dcea2c0275a68f8eef6d94bfabcbec7c1f4ad46e /common | |
parent | Merge pull request #2696 from RyanDwyer/fix-gtkmenubar (diff) | |
parent | swaybg: fix increasingly smaller bg on hotplug (diff) | |
download | sway-4a4f07ac25d18dfeffc6a1ff55e175ba01abc290.tar.gz sway-4a4f07ac25d18dfeffc6a1ff55e175ba01abc290.tar.zst sway-4a4f07ac25d18dfeffc6a1ff55e175ba01abc290.zip |
Merge pull request #2699 from RedSoxFan/fix-2667
swaybg: fix increasingly smaller bg on hotplug
Diffstat (limited to 'common')
-rw-r--r-- | common/background-image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/background-image.c b/common/background-image.c index f3d2551e..5ede55e3 100644 --- a/common/background-image.c +++ b/common/background-image.c | |||
@@ -58,6 +58,7 @@ void render_background_image(cairo_t *cairo, cairo_surface_t *image, | |||
58 | double width = cairo_image_surface_get_width(image); | 58 | double width = cairo_image_surface_get_width(image); |
59 | double height = cairo_image_surface_get_height(image); | 59 | double height = cairo_image_surface_get_height(image); |
60 | 60 | ||
61 | cairo_save(cairo); | ||
61 | switch (mode) { | 62 | switch (mode) { |
62 | case BACKGROUND_MODE_STRETCH: | 63 | case BACKGROUND_MODE_STRETCH: |
63 | cairo_scale(cairo, | 64 | cairo_scale(cairo, |
@@ -116,4 +117,5 @@ void render_background_image(cairo_t *cairo, cairo_surface_t *image, | |||
116 | break; | 117 | break; |
117 | } | 118 | } |
118 | cairo_paint(cairo); | 119 | cairo_paint(cairo); |
120 | cairo_restore(cairo); | ||
119 | } | 121 | } |