all repos — tint2 @ ebe30774acb772e16026cf432a84c83e9ba1f217

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

Taskbar: thumbnails (make sure window is not minimized)
o9000 mrovi9000@gmail.com
commit

ebe30774acb772e16026cf432a84c83e9ba1f217

parent

d463dcb5b40ef0e47681a1465a3c6d8d4a5c7823

1 files changed, 8 insertions(+), 0 deletions(-)

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

@@ -387,6 +387,9 @@ XWindowAttributes wa;

if (!XGetWindowAttributes(server.display, win, &wa) || wa.width <= 0 || wa.height <= 0) goto err0; + if (window_is_iconified(win)) + goto err0; + size_t w, h; w = (size_t)wa.width; h = (size_t)wa.height;

@@ -436,6 +439,9 @@ if (!XShmGetImage(server.display, win, ximg, 0, 0, AllPlanes)) {

fprintf(stderr, RED "tint2: !xshmgetimage" RESET "\n"); goto err4; } + + if (window_is_iconified(win)) + goto err4; result = cairo_image_surface_create(CAIRO_FORMAT_RGB24, (int)tw, (int)th); u_int32_t *data = (u_int32_t *)cairo_image_surface_get_data(result);

@@ -503,6 +509,8 @@ {

static cairo_filter_t filter = CAIRO_FILTER_BEST; XWindowAttributes wa; if (!XGetWindowAttributes(server.display, win, &wa)) + return NULL; + if (window_is_iconified(win)) return NULL; int w, h; w = wa.width;