X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Ftint.c;h=e5bde53391fe2d88e24c7362d55eace541de3bff;hb=e177e2a5f09e5037eb4b16fd6d6a1dbfa22b9558;hp=1753ac576f624c618fdfcd9f353558142db8730b;hpb=1ba1615f4f53471ad47b4d7299dd4c97dc59a103;p=chaz%2Ftint2 diff --git a/src/tint.c b/src/tint.c index 1753ac5..e5bde53 100644 --- a/src/tint.c +++ b/src/tint.c @@ -596,8 +596,8 @@ load_config: i = config_read_file (optarg); c = getopt (argc, argv, "j:"); if (c != -1) { - // usage: tint2 [-c] -j for internal use - printf("jpeg file %s\n", optarg); + // usage: tint2 [-c] -j 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)