fixed some bugs

git-svn-id: http://tint2.googlecode.com/svn/trunk@69 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-03-07 10:05:15 +00:00
parent d7d11324c0
commit 09b95187d3
15 changed files with 72 additions and 41 deletions

View File

@@ -86,7 +86,6 @@ void init ()
void cleanup()
{
cleanup_systray();
cleanup_panel();
if (time1_font_desc) pango_font_description_free(time1_font_desc);
@@ -549,6 +548,7 @@ load_config:
case UnmapNotify:
case DestroyNotify:
if (!systray.area.on_screen) break;
for (it = systray.list_icons; it; it = g_slist_next(it)) {
if (((TrayWindow*)it->data)->id == e.xany.window) {
remove_icon((TrayWindow*)it->data);
@@ -558,6 +558,7 @@ load_config:
break;
case ClientMessage:
if (!systray.area.on_screen) break;
//printf("ClientMessage\n");
if (e.xclient.message_type == server.atom._NET_SYSTEM_TRAY_OPCODE && e.xclient.format == 32 && e.xclient.window == net_sel_win) {
net_message(&e.xclient);