1 |
mrpouet 10/02/02 12:59:37 |
2 |
|
3 |
Added: compiz-0.8.4-window-region-calculation.patch |
4 |
Log: |
5 |
Fix window region calculation for windows that have border width set, patch imported from upstream, per bug #302308. |
6 |
(Portage version: 2.2_rc62/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 x11-wm/compiz/files/compiz-0.8.4-window-region-calculation.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/compiz/files/compiz-0.8.4-window-region-calculation.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/compiz/files/compiz-0.8.4-window-region-calculation.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: compiz-0.8.4-window-region-calculation.patch |
15 |
=================================================================== |
16 |
From 79a275b240a98d9f64c8dd1e799e5d469ec8f204 Mon Sep 17 00:00:00 2001 |
17 |
From: Danny Baumann <dannybaumann@×××.de> |
18 |
Date: Wed, 20 Jan 2010 14:05:10 +0000 |
19 |
Subject: Fix window region calculation for windows that have border width set. |
20 |
|
21 |
--- |
22 |
diff --git a/src/window.c b/src/window.c |
23 |
index 90922d1..e7bb987 100644 |
24 |
--- a/src/window.c |
25 |
+++ b/src/window.c |
26 |
@@ -1701,8 +1701,8 @@ updateWindowRegion (CompWindow *w) |
27 |
{ |
28 |
r.x = -w->attrib.border_width; |
29 |
r.y = -w->attrib.border_width; |
30 |
- r.width = w->width; |
31 |
- r.height = w->height; |
32 |
+ r.width = w->attrib.width + w->attrib.border_width; |
33 |
+ r.height = w->attrib.height + w->attrib.border_width; |
34 |
|
35 |
rects = &r; |
36 |
n = 1; |
37 |
@@ -1719,8 +1719,10 @@ updateWindowRegion (CompWindow *w) |
38 |
{ |
39 |
rect.extents.x1 = rects[i].x + w->attrib.border_width; |
40 |
rect.extents.y1 = rects[i].y + w->attrib.border_width; |
41 |
- rect.extents.x2 = rect.extents.x1 + rects[i].width; |
42 |
- rect.extents.y2 = rect.extents.y1 + rects[i].height; |
43 |
+ rect.extents.x2 = rect.extents.x1 + rects[i].width + |
44 |
+ w->attrib.border_width; |
45 |
+ rect.extents.y2 = rect.extents.y1 + rects[i].height + |
46 |
+ w->attrib.border_width; |
47 |
|
48 |
if (rect.extents.x1 < 0) |
49 |
rect.extents.x1 = 0; |
50 |
-- |
51 |
cgit v0.8.2 |