http://bugs.winehq.org/show_bug.cgi?id=27190
--- Comment #5 from Jarek jarekczek@poczta.onet.pl 2011-07-03 15:23:19 CDT --- I have a dumb fix for the issue.
+all reported:
002c:trace:x11drv:update_net_wm_states setting wm state 4 for unmapped window 0xd019c/2000003
Thus editing dlls/winex11.drv/window.c and update_net_wm_states(), commenting lines:
if (!(ex_style & WS_EX_APPWINDOW) && GetWindow( data->hwnd, GW_OWNER )) new_state |= (1 << NET_WM_STATE_SKIP_TASKBAR);
prevents the skip taskbar flag for the Form1 window. So then both windows are on a task bar.
I don't know why the window is unmapped and how it should work in a smart way. That would set skiptaskbar on Project1 and not Form1.