all repos — tint2 @ cc5842463d2777ad0b8043f4d179bcd6faa7fab9

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

Simplify get_text_size
o9000 mrovi9000@gmail.com
commit

cc5842463d2777ad0b8043f4d179bcd6faa7fab9

parent

5e124c7a979fd4483994fbaaaf9facd31624f397

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

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

@@ -937,10 +937,9 @@ PangoRectangle rect_ink, rect;

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_xlib_surface_create(server.display, pmap, server.visual, available_height, available_width); + cairo_image_surface_create(CAIRO_FORMAT_ARGB32, available_height, available_width); cairo_t *c = cairo_create(cs); PangoLayout *layout = pango_cairo_create_layout(c);

@@ -964,7 +963,6 @@

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