James Liggett jrliggett@cox.net writes:
{if ((X11DRV_get_systray_window( display ) == None) ||(!(ex_style & WS_EX_TRAYWINDOW))){XMapWindow( display, data->whole_window );}
You don't want to add more dependencies on the WS_EX_TRAYWINDOW style, it will have to be removed sooner or later. Also there's no reason to do the mapping check at such a low level, since it's a window we control you can simply avoid calling ShowWindow on it.