The problem is that there's a bit in WM_HINTS which (in both apps) isn't set. You can see this using "xprop -id 0x..."
... WM_CLASS(STRING) = "dosbox", "dosbox" WM_HINTS(WM_HINTS): bitmap id # to use for icon: 0xc0000d bitmap id # of mask for icon: 0xc0000b
... WM_CLASS(STRING) = "test-i386", "test-i386" WM_HINTS(WM_HINTS): Client accepts input or input focus: True