all repos — tint2 @ bf58e16b83bc59745323a6955d98b862e3edc63b

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Possible fix for issue #693
o9000 mrovi9000@gmail.com
commit

bf58e16b83bc59745323a6955d98b862e3edc63b

parent

3190c5b7de7925f0f0d9570e7124936b9079bc20

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/util/common.csrc/util/common.c

@@ -942,8 +942,9 @@

available_width = MAX(0, available_width); available_height = MAX(0, available_height); + Pixmap pmap = XCreatePixmap(server.display, server.root_win, available_height, available_width, server.depth); cairo_surface_t *cs = - cairo_image_surface_create(CAIRO_FORMAT_ARGB32, available_height, available_width); + cairo_xlib_surface_create(server.display, pmap, server.visual, available_height, available_width); cairo_t *c = cairo_create(cs); PangoContext *context = pango_cairo_create_context(c);

@@ -970,6 +971,7 @@ g_object_unref(layout);

g_object_unref(context); cairo_destroy(c); cairo_surface_destroy(cs); + XFreePixmap(server.display, pmap); } #if !GLIB_CHECK_VERSION(2, 34, 0)