all repos — tint2 @ d4a67f631b7ddf5d80bdd42f07ec98e47a7e5644

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

*fix* issue 241



git-svn-id: http://tint2.googlecode.com/svn/trunk@407 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

d4a67f631b7ddf5d80bdd42f07ec98e47a7e5644

parent

5309f43eef2581c96a87e3e82b8e5ddf3ef22d85

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M src/systray/systraybar.csrc/systray/systraybar.c

@@ -358,7 +358,7 @@ int hide = 0;

error = FALSE; XWindowAttributes attr; - XGetWindowAttributes(server.dsp, id, &attr); + if ( XGetWindowAttributes(server.dsp, id, &attr) == False ) return FALSE; unsigned long mask = 0; XSetWindowAttributes set_attr; printf("icon with depth: %d\n", attr.depth);

@@ -423,6 +423,7 @@ e.xclient.data.l[4] = 0;

XSendEvent(server.dsp, id, False, 0xFFFFFF, &e); } + printf("Adding systray with window: %d\n", id); traywin = g_new0(TrayWindow, 1); traywin->id = parent_window; traywin->tray_id = id;

@@ -463,6 +464,7 @@ void remove_icon(TrayWindow *traywin)

{ XErrorHandler old; + printf("Removing systray with window: %d\n", traywin->tray_id); // remove from our list systray.list_icons = g_slist_remove(systray.list_icons, traywin); systray.area.resize = 1;

@@ -543,7 +545,7 @@ else {

printf("Strange tray icon found with depth: %d\n", traywin->depth); return; } - Picture pict_image = XRenderCreatePicture(server.dsp, traywin->tray_id, f, 0, 0); + Picture pict_image = XRenderCreatePicture(server.dsp, traywin->id, f, 0, 0); Picture pict_drawable = XRenderCreatePicture(server.dsp, tmp_pmap, XRenderFindVisualFormat(server.dsp, server.visual32), 0, 0); XRenderComposite(server.dsp, PictOpSrc, pict_image, None, pict_drawable, 0, 0, 0, 0, 0, 0, traywin->width, traywin->height); XRenderFreePicture(server.dsp, pict_image);