Check a few things including decoration state, icon, and wm class name
to determine ibus popup behavior