[metacity] frames: include invisible are in cache
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] frames: include invisible are in cache
- Date: Sun, 5 Apr 2015 20:45:38 +0000 (UTC)
commit 13137b1d1281f09b31c22aa289a84af56e92434f
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Apr 4 17:40:25 2015 +0300
frames: include invisible are in cache
GTK+ theme might use this area to paint box-shadow. Also use
CAIRO_CONTENT_COLOR_ALPHA for cairo surfaces.
src/ui/frames.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/ui/frames.c b/src/ui/frames.c
index fbd0956..9dd33ae 100644
--- a/src/ui/frames.c
+++ b/src/ui/frames.c
@@ -2244,7 +2244,7 @@ generate_pixmap (MetaFrames *frames,
return NULL;
result = gdk_window_create_similar_surface (frame->window,
- CAIRO_CONTENT_COLOR,
+ CAIRO_CONTENT_COLOR_ALPHA,
rect->width, rect->height);
cr = cairo_create (result);
@@ -2311,28 +2311,28 @@ populate_cache (MetaFrames *frames,
* size without any border added. */
/* top */
- pixels->piece[0].rect.x = borders.invisible.left;
- pixels->piece[0].rect.y = borders.invisible.top;
- pixels->piece[0].rect.width = width + borders.visible.left + borders.visible.right;
- pixels->piece[0].rect.height = borders.visible.top;
+ pixels->piece[0].rect.x = 0;
+ pixels->piece[0].rect.y = 0;
+ pixels->piece[0].rect.width = width + borders.total.left + borders.total.right;
+ pixels->piece[0].rect.height = borders.total.top;
/* left */
- pixels->piece[1].rect.x = borders.invisible.left;
+ pixels->piece[1].rect.x = 0;
pixels->piece[1].rect.y = borders.total.top;
pixels->piece[1].rect.height = height;
- pixels->piece[1].rect.width = borders.visible.left;
+ pixels->piece[1].rect.width = borders.total.left;
/* right */
pixels->piece[2].rect.x = borders.total.left + width;
pixels->piece[2].rect.y = borders.total.top;
- pixels->piece[2].rect.width = borders.visible.right;
+ pixels->piece[2].rect.width = borders.total.right;
pixels->piece[2].rect.height = height;
/* bottom */
- pixels->piece[3].rect.x = borders.invisible.left;
+ pixels->piece[3].rect.x = 0;
pixels->piece[3].rect.y = borders.total.top + height;
- pixels->piece[3].rect.width = width + borders.visible.left + borders.visible.right;
- pixels->piece[3].rect.height = borders.visible.bottom;
+ pixels->piece[3].rect.width = width + borders.total.left + borders.total.right;
+ pixels->piece[3].rect.height = borders.total.bottom;
for (i = 0; i < 4; i++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]