diff -Nru mate-utils-1.18.1/debian/changelog mate-utils-1.18.1/debian/changelog --- mate-utils-1.18.1/debian/changelog 2017-04-04 19:08:02.000000000 +0300 +++ mate-utils-1.18.1/debian/changelog 2017-10-14 16:25:17.000000000 +0300 @@ -1,3 +1,10 @@ +mate-utils (1.18.1-0ubuntu2) UNRELEASED; urgency=medium + + * fix-screenshot-crash.patch: new patch. Fixes occasional + mate-screenshot crashes (LP: #1638835) + + -- Vlad Orlov Sat, 14 Oct 2017 16:25:17 +0300 + mate-utils (1.18.1-0ubuntu1) zesty; urgency=medium * New upstream maintenance release. diff -Nru mate-utils-1.18.1/debian/patches/fix-screenshot-crash.patch mate-utils-1.18.1/debian/patches/fix-screenshot-crash.patch --- mate-utils-1.18.1/debian/patches/fix-screenshot-crash.patch 1970-01-01 03:00:00.000000000 +0300 +++ mate-utils-1.18.1/debian/patches/fix-screenshot-crash.patch 2017-10-14 16:24:53.000000000 +0300 @@ -0,0 +1,58 @@ +From dd8bb2cf8266c8f898613f69ddc817a1e30fced9 Mon Sep 17 00:00:00 2001 +From: monsta +Date: Thu, 12 Oct 2017 12:39:18 +0300 +Subject: [PATCH] screenshot: don't get window title as it's not used later + +it's useless since https://github.com/mate-desktop/mate-utils/commit/8f060cfddeedc196cf8689ffc670a80cbe5698c6 + +fixes https://github.com/mate-desktop/mate-utils/issues/165 +--- + mate-screenshot/src/mate-screenshot.c | 14 ++------------ + 1 file changed, 2 insertions(+), 12 deletions(-) + +Index: mate-utils-1.18.1/mate-screenshot/src/mate-screenshot.c +=================================================================== +--- mate-utils-1.18.1.orig/mate-screenshot/src/mate-screenshot.c ++++ mate-utils-1.18.1/mate-screenshot/src/mate-screenshot.c +@@ -93,7 +93,6 @@ static GdkPixbuf *screenshot = NULL; + + /* Global variables*/ + static char *last_save_dir = NULL; +-static char *window_title = NULL; + static char *temporary_file = NULL; + static gboolean save_immediately = FALSE; + static GSettings *settings = NULL; +@@ -1023,7 +1022,7 @@ out: + } + + static GdkWindow * +-find_current_window (char **window_title) ++find_current_window (void) + { + GdkWindow *window; + +@@ -1038,15 +1037,6 @@ find_current_window (char **window_title + take_window_shot = FALSE; + window = gdk_get_default_root_window (); + } +- else +- { +- gchar *tmp, *sanitized; +- +- tmp = screenshot_get_window_title (window); +- sanitized = screenshot_sanitize_filename (tmp); +- g_free (tmp); +- *window_title = sanitized; +- } + } + else + { +@@ -1068,7 +1058,7 @@ push_check_file_job (GdkRectangle *recta + job->base_uris[2] = g_strconcat ("file://", g_get_tmp_dir (), NULL); + job->iteration = 0; + job->type = TEST_LAST_DIR; +- job->window = find_current_window (&window_title); ++ job->window = find_current_window (); + + if (rectangle != NULL) + { diff -Nru mate-utils-1.18.1/debian/patches/series mate-utils-1.18.1/debian/patches/series --- mate-utils-1.18.1/debian/patches/series 1970-01-01 03:00:00.000000000 +0300 +++ mate-utils-1.18.1/debian/patches/series 2017-10-14 16:24:39.000000000 +0300 @@ -0,0 +1 @@ +fix-screenshot-crash.patch