[mate-utils] add mate-utils_fix_crash_screenshot.patch
Wolfgang Ulbrich
raveit65 at fedoraproject.org
Tue Oct 22 19:08:10 UTC 2013
commit 4da417f8619ea7832a88aa7fe8e7a4b28af2a481
Author: raveit65 <chat-to-me at raveit.de>
Date: Tue Oct 22 21:08:02 2013 +0200
add mate-utils_fix_crash_screenshot.patch
mate-utils_fix_crash_screenshot.patch | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/mate-utils_fix_crash_screenshot.patch b/mate-utils_fix_crash_screenshot.patch
new file mode 100644
index 0000000..85e3b7b
--- /dev/null
+++ b/mate-utils_fix_crash_screenshot.patch
@@ -0,0 +1,24 @@
+diff --git a/mate-screenshot/mate-screenshot.c b/mate-screenshot/mate-screenshot.c
+index 253dcb8..ac348aa 100644
+--- a/mate-screenshot/mate-screenshot.c
++++ b/mate-screenshot/mate-screenshot.c
+@@ -1432,8 +1432,17 @@ main (int argc, char *argv[])
+ }
+ else
+ {
+- /* start this in an idle anyway and fire up the mainloop */
+- g_idle_add (prepare_screenshot_timeout, NULL);
++ if (interactive_arg)
++ {
++ /* HACK: give time to the dialog to actually disappear.
++ * We don't have any way to tell when the compositor has finished
++ * re-drawing.
++ */
++ g_timeout_add (200,
++ prepare_screenshot_timeout, NULL);
++ }
++ else
++ g_idle_add (prepare_screenshot_timeout, NULL);
+ }
+
+ gtk_main ();
More information about the scm-commits
mailing list