summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-07-20 20:18:26 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-07-20 20:18:26 +0200
commit1fd2748f12a0ade314bac82db12bfbfa1ef2f686 (patch)
treeb495182d4a9aa8c2f2a31dfd1d9ec103a8d85338
parent428a4505544fdb6403784b4aebb420478f64532c (diff)
downloadlibwnck-1fd2748f12a0ade314bac82db12bfbfa1ef2f686.tar.gz
WnckPager: try to render frames in windows anyway
-rw-r--r--libwnck/pager.c7
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);