[libwnck] WnckPager: try to render frames in windows anyway
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck] WnckPager: try to render frames in windows anyway
- Date: Sat, 20 Jul 2013 18:21:38 +0000 (UTC)
commit 1fd2748f12a0ade314bac82db12bfbfa1ef2f686
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Sat Jul 20 20:18:26 2013 +0200
WnckPager: try to render frames in windows anyway
libwnck/pager.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/libwnck/pager.c b/libwnck/pager.c
index c45111f..766c988 100644
--- a/libwnck/pager.c
+++ b/libwnck/pager.c
@@ -1005,6 +1005,7 @@ draw_window (cairo_t *cr,
if (is_active)
{
+ /* Sharpen the foreground color */
cairo_set_source_rgba (cr, 1.0f, 1.0f, 1.0f, 0.3f);
cairo_rectangle (cr, winrect->x + 1, winrect->y + 1,
MAX (0, winrect->width - 2), MAX (0, winrect->height - 2));
@@ -1055,6 +1056,12 @@ draw_window (cairo_t *cr,
cairo_paint_with_alpha (cr, translucency);
}
+ cairo_push_group (cr);
+ gtk_render_frame (context, cr, winrect->x + 0.5, winrect->y + 0.5,
+ MAX (0, winrect->width - 1), MAX (0, winrect->height - 1));
+ cairo_pop_group_to_source (cr);
+ cairo_paint_with_alpha (cr, translucency);
+
gtk_style_context_get_color (context, state, &fg);
fg.alpha = translucency;
gdk_cairo_set_source_rgba (cr, &fg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]