X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftint2;a=blobdiff_plain;f=src%2Fsystray%2Fsystraybar.c;h=8a92a0452ff8d083596ff8632986bc4ebf3ef0b6;hp=c0672e35b7335d1fde481e71f8f2326729215580;hb=31738a0686966a561b8578d5daf1366dd0a8c1ac;hpb=3aeea720bbd6d691c576b511e4e60e0af982bc62 diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index c0672e3..8a92a04 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -354,6 +354,9 @@ gboolean add_icon(Window id) Panel *panel = systray.area.panel; int hide = 0; + // watch for the icon trying to resize itself / closing again! + XSelectInput(server.dsp, id, StructureNotifyMask); + error = FALSE; XWindowAttributes attr; if ( XGetWindowAttributes(server.dsp, id, &attr) == False ) return FALSE; @@ -442,8 +445,6 @@ gboolean add_icon(Window id) systray.list_icons = g_slist_insert_sorted(systray.list_icons, traywin, compare_traywindows); //printf("add_icon id %lx, %d\n", id, g_slist_length(systray.list_icons)); - // watch for the icon trying to resize itself! - XSelectInput(server.dsp, traywin->tray_id, StructureNotifyMask); if (server.real_transparency || systray.alpha != 100 || systray.brightness != 0 || systray.saturation != 0) { traywin->damage = XDamageCreate(server.dsp, traywin->id, XDamageReportRawRectangles); XCompositeRedirectWindow(server.dsp, traywin->id, CompositeRedirectManual);