Commit fa2482a0 authored by Lionel Le Folgoc's avatar Lionel Le Folgoc

* debian/patches:

  - 01_fix-crash-with-some-wms.patch: added, fix a crash that occurs with some
    wms, e.g. awesome, when taking a screenshot.  lp: #830920, Closes: #648739
parent 17e5330a
xfce4-screenshooter (1.8.0-2) UNRELEASED; urgency=low
* debian/patches:
- 01_fix-crash-with-some-wms.patch: added, fix a crash that occurs with some
wms, e.g. awesome, when taking a screenshot. lp: #830920, Closes: #648739
-- Lionel Le Folgoc <mrpouit@gmail.com> Thu, 05 Jan 2012 22:38:25 +0100
xfce4-screenshooter (1.8.0-1) unstable; urgency=low
* New upstream release.
......
From d99765f43d36af5edf60277f5043eb7ae9c97088 Mon Sep 17 00:00:00 2001
From: Bruno Ramos <brunoramos.lu@gmail.com>
Date: Mon, 02 Jan 2012 22:20:09 +0000
Subject: Fix crash with some WM (bug #8080).
---
diff --git a/lib/screenshooter-capture.c b/lib/screenshooter-capture.c
index 830d460..52f7b5c 100644
--- a/lib/screenshooter-capture.c
+++ b/lib/screenshooter-capture.c
@@ -381,6 +381,18 @@ static GdkPixbuf
rec_height += rectangle.y;
}
+ if (rec_x < 0)
+ {
+ rec_width = rec_width + rec_x;
+ rec_x = 0;
+ }
+
+ if (rec_y < 0)
+ {
+ rec_height = rec_height + rec_y;
+ rec_y = 0;
+ }
+
if (x_orig + rec_x + rec_width > gdk_screen_width ())
rec_width = gdk_screen_width () - x_orig - rec_x;
--
cgit v0.9.0.2
01_fix-crash-with-some-wms.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment