Make rotate-windows aware of dedicated windows