fixed issue 110 and issue 107

git-svn-id: http://tint2.googlecode.com/svn/trunk@134 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
lorthiois@bbsoft.fr
2009-06-29 18:39:44 +00:00
parent e20d94b188
commit f100b49158
8 changed files with 79 additions and 53 deletions

View File

@@ -596,8 +596,8 @@ load_config:
i = config_read_file (optarg);
c = getopt (argc, argv, "j:");
if (c != -1) {
// usage: tint2 [-c] <config_file> -j <jpeg_file> for internal use
printf("jpeg file %s\n", optarg);
// usage: tint2 [-c] <config_file> -j <file> for internal use
printf("file %s\n", optarg);
cleanup();
exit(0);
}
@@ -653,8 +653,13 @@ load_config:
break;
case ReparentNotify:
if (e.xany.window == server.root_win) // reparented to us
if (!systray.area.on_screen)
break;
panel = (Panel*)systray.area.panel;
if (e.xany.window == panel->main_win) // reparented to us
break;
// FIXME: 'reparent to us' badly detected => disabled
break;
case UnmapNotify:
case DestroyNotify:
if (!systray.area.on_screen)