all repos — tint2 @ 7ddb373cb4462649026396bc6216516c897c1908

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

Taskbar: thumbnails
o9000 mrovi9000@gmail.com
commit

7ddb373cb4462649026396bc6216516c897c1908

parent

8ba1f2630950b1b5fd73dc92c2e71d217947d2e7

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

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

@@ -367,8 +367,12 @@ int tw, th;

th = 128; tw = w * th / h; + XWindowAttributes wa; + if (!XGetWindowAttributes(server.display, win, &wa)) + return NULL; + cairo_surface_t *x11_surface = - cairo_xlib_surface_create(server.display, win, DefaultVisual(server.display, server.screen), w, h); + cairo_xlib_surface_create(server.display, win, wa.visual, w, h); cairo_surface_t *image_surface = cairo_surface_create_similar_image(x11_surface, CAIRO_FORMAT_ARGB32, tw, th); cairo_t *cr = cairo_create(image_surface);