Followup ca6a16f: use parent selector both for hiding and showing windows

Otherwise windows in non-modal window managers that are nested
inside modal window managers are never visible.

Bug: 64761
Change-Id: I2fe96188428d8501dd0380335ee50b032bbb0de3